In article <11**********************@f14g2000cwb.googlegroups .com>,
<pr**********@gmail.com> wrote:
I'm compiling a huge(900 files ) embedded application written in C .
Over a period of time , the code has developed a lot of inter crossed
dependenc. The current scenario is , i make a change to one header file
, it begins to compile all the .c files in the project.
Is there a tool/algorithm to remove all the unecessary
dependency ?
This is outside of the C standard itself, which does not talk much
about how compiling actually happens.
On Unix-type systems there is often a command named something like
"makedepend". It fishes through the given set of source files and
builds a hierarchy of dependancies, and writes that out in Makefile
format. Most of the time you can set it up so that the Makefile
itself is updated, so that you can
make depends
and it updates the Makefile so that the build goes properly.
Some compilers (SGI IRIX I know; gcc 3 + if I recall correctly) have
this or similar facilities built right into the compilers, so it can
automatically update the configuration file during the compilation phase
itself -- usually quite efficient since it is already looking at all the
source.
--
Okay, buzzwords only. Two syllables, tops. -- Laurie Anderson