Hello Marc!
Friday, November 15, 2002, 9:10:46 AM, you wrote:
MH> I have just completed writing a windows based app using Dec-C++ (4.9.6.8)
MH> and gcc (2.95.3-6) compiled using -O3 and got an executable size of 100,864
MH> bytes. I then took the same code (no changes) and compiled using VC++ 6 SP2
MH> release build and got and executable size of 69,632 bytes. Are there some
MH> switches and things I should know about that can further optimize the
MH> results?
Try using the -O2 flag instead of -O3. I got better (smaller) results
with it, and I have read somewhere, that O2 is better, and more
reliable than O3, and O1.
I have tried it with a small file:
source: 8091 bytes
normal compile: 4783 bytes
-O (-O1): 4042 bytes
-O2: 4202 bytes
-O3: 5606 bytes
Hope I could help.
--
Best regards,
Oroszi Balázs mailto:or...@vp...
|