Thread: Huge file sizes
View Single Post
Old 03-22-2003, 11:43 PM   #2 (permalink)
Danish
Registered User
 
Join Date: Mar 2003
Posts: 12
Danish is on a distinguished road
Send a message via AIM to Danish
Fixed.

Fixed my own problem, I believe. When I do this:

gcc foo.o -s -fno-exceptions -fno-rtti -ofoo

I get much smaller code than before. Got the info from here: http://www.spacejack.org/games/mingw/

Edit: Okay, so that was a general command that wouldn't work in real life. Here's a better example or two:

g++ foo.cc -s -fno-exceptions -fno-rtti -ofoo
gcc foo.c -s -fno-exceptions -ofoo
Danish is offline   Reply With Quote