This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: optimization across c source files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]