This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: optimization across c source files
- From: Ian Lance Taylor <ian at airs dot com>
- To: Virender Kashyap <virenk at cse dot iitb dot ac dot in>
- Cc: GCC HELP <gcc-help at gcc dot gnu dot org>
- Date: 25 May 2005 13:00:31 -0400
- Subject: Re: optimization across c source files
- References: <Pine.LNX.4.61.0505252225330.6775@mars.cse.iitb.ac.in>
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