> Francois wrote:
> > Really 9MB vs 500MB. I know it is hard to believe. 
> 
> So, you have an executable that is normally 9MB in
> size.
> But, when you compile this for debugging (-g?) it
> turns
> out to be 500MB is size?

YES

> 
> > But we use a lot of shared libraries (lib*so),
> which might explain the huge difference.
> 
> What do you mean?  Do you link to shared libraries
> normally,
> but link to something different (perhaps the shared
> object
> contents in an archive (.a) format) when building the
> debug version of the executable?

No, we build the same way (except a few flags difference).

He is our link command for the optimized version:

[i]SUNWspro/bin/CC -mt -D_RWCONFIG_12d -z altexec64 -O3 +w -DSPARC 
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -o foo ...[/i]

And here it is for the debug version:

[i]SUNWspro/bin/CC -mt -D_RWCONFIG_12d -z altexec64  -g  -DSPARC 
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -o foo ...[/i]
 
 
This message posted from opensolaris.org

Reply via email to