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]

question on optimization


I was wondering if you would get better optimizations from GCC by doing a "bulk' build or a 'individual' build. For example our current build system compiles each file separately with the /c switch and then links all the object files. Would we (potentially) get better optimization if we compiled all the modules together, e.g.

gcc <options> module1.c module2.c ... moduleN.c?

Oddly enough I was looking for stuff on the web about this and for some reason I hit a document talking about whole program optimization in Visual Studio, where the linker actually does some of the optimizations (http://www.codeproject.com/tips/gloption.asp).

Thanks
Jim


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