Mail Archives: djgpp/1994/12/09/15:21:15
jdp AT polstra DOT com (John Polstra) writes:
> The compiler option is "-fconserve-space". It was introduced in version
> 2.6.0, which means that it is available in the compiler that comes
> with djgpp112. From the GNU documentation, under "Options Controlling
> C++ Dialect":
>
> ===============================================================================
> `-fconserve-space'
> Put uninitialized or runtime-initialized global variables into the
> common segment, as C does. This saves space in the executable at
> the cost of not diagnosing duplicate definitions. If your program
> mysteriously crashes after `main()' has completed, you may have an
> object that is being destroyed twice because two definitions were
> merged.
> ===============================================================================
This certainly does seem to do the trick -- thanks John.
> It's really worth it to browse the compiler documentation. There are
> options out the wazoo to control just about everything you'd like to
> control.
Funny thing, though, it's NOT in any of the 2.6 documentation files
that came with djgpp 1.12 that I have...
----
Martin Miller Enumclaw, Washington mrmiller AT delphi DOT com
/\/\./\/\.
- Raw text -