Question about Compile process?

Post Reply
Keivan
Posts: 127
Joined: Sat Apr 22, 2006 4:28 am

Question about Compile process?

Post by Keivan »

When I use compiler flags (even -O2), using gcc or icc, to compile IV, there is a significant difference in the size of "libUnidrawhines.so.3.0.3" and " libIVhines.so.3.0.3", compared to the version that compiled without flags.
without flags --> libIVhines.so.3.0.3=7.9mb and libUnidrawhines.so.3.0.3=5.7mb
with flag -O2 --> libIVhines.so.3.0.3=2.6mb and libUnidrawhines.so.3.0.3=1.6mb
If I do not use flag, program automatically uses "-O2 -g" glags -->but why, when they use the same flag, they differ in size?
Is this OK?
hines
Site Admin
Posts: 1600
Joined: Wed May 18, 2005 3:32 pm

Re: Question about Compile process?

Post by hines »

-g adds debugging information
Post Reply