optimization across c source files

Ian Lance Taylor ian@airs.com
Wed May 25 17:00:00 GMT 2005


Virender Kashyap <virenk@cse.iitb.ac.in> writes:

>     Is there some way by which i can enable optimization
> (e.g. inlining) across c files specified in order while
> compilation. like:
> gcc -o out main.c file1.c file2.c ....

With gcc 4.0 you can try the new -combine option.  See the docs.

Ian



More information about the Gcc-help mailing list