Mail Archives: djgpp/1997/11/25/10:34:55
Eli Zaretskii wrote:
>
> That's exactly what happens--in C programs. In C++, there's a potential
> problem with such declarations (see section 8.14 of the FAQ) which GCC
> resolves by including the array in the executable (there's a switch to
> disable this behavior).
I get it (having reread that section, and the equivalent bit of the GCC
documentation, several times). This is because it would somehow merge
duplicate definitions, yes? So if you said "int x; int x;" it would
merge tham and then generate code to destroy 'x' twice? Sounds like
a bug in GCC to me, not a (mis)feature; does any other C++ compiler
have this problem?
In the meantime, it sounds as though compressing the executable is the
answer. Or are there problems with that as well?
Chris C
- Raw text -