Mail Archives: djgpp/1996/10/21/01:12:30
Hi all,
I just downloaded djgpp v2.01 today, and so far, everything
seems to work fine.
I noticed, though, when I recompiled a small library I have,
the object file grew about 3000 bytes from 5800 to 9000 bytes long.
Looking in the file with a file viewer, and using objdump.exe, I
discovered that all the Lxxx symbols the compiler produces in the
assembly code are retained in the object after assembly. The AS
documentation (info as symbols 'symbol names') states that all
symbols which begin with an L are local labels and are not retained
in the object file unless as is invoked with the -L option.
I invoked gcc with -v, and gcc is not passing a -L option to
the assembler, so why is it putting the Lxxx symbols in the object
file? It is not a big problem, but it does unnecessarily increase
the size of object files, and by extension, library files.
Is there anything that can be done to change this? I suppose
I could try to use as.exe from V2.0 instead.
Troy Van Horn
- Raw text -