Ok when I use gcc (all th time) the program it makes in c++ with debug on is around a megabyte when off it is around half a megabyte when working with c with debug on it around 50 k with it off it's at about25 k this doesn't seem to depend on how much is in the program (none of mine are large) so what compiler makes he smallest programs?
Zssffssz
-4
Junior Poster
Recommended Answers
Jump to PostHave you tried using the -Os flag for GCC?
Jump to PostAll the -O flags are related to optimizations. There are -O0 through -O3 going up in speed optimizations. There is also -Os which tries to minimize the size of the output file.
All 8 Replies
mebob
0
Junior Poster in Training
Zssffssz
-4
Junior Poster
mebob
0
Junior Poster in Training
Zssffssz
-4
Junior Poster
mebob
0
Junior Poster in Training
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Zssffssz
-4
Junior Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.