Mail Archives: djgpp/1994/11/22/20:55:21
On Tue, 22 Nov 1994 elio AT pvax DOT Ico DOT Olivetti DOT Com wrote:
> > > it compiles to a binary file of 15617 bytes, with this output from the size
> > > command: ^^^
> > >
> > > text data bss dec hex
> > > 3052 4096 131240 138388 21c94
> > >
> > > Are you sure you read correctly the file size? ;-)
> > quite sure. check your size output. then check your exe size again.
>
> I don't see what I should check again.
Size said right there that your exe was 138k. not 15k. That's what I
wanted you to check again.
> Assuming that you really get that big binary, something must be broken on
> your installation. Mixed libraries, mixed go32 versions, or maybe you did
> not install the two maintenance updates of 1.12?
I didn't link any libraries. I did run the maints.
> A simple suggestion: do a gcc -S of your file, and email both the C source
> and the assembly output to the list; this way we could try to understand
> what happens on your installation.
Okay, here it is. I erased the original test.cc so I rewrote it.
-----------SOURCE-----------
char Map[256][512];
main() {
} // turns out even memset() isn't needed...
-----------SIZE-----------
text data bss dec hex filename
3008 135168 164 138340 21c64 test
-----------GCC test.cc -S -O2------------
.file "test.cc"
gcc2_compiled.:
___gnu_compiled_cplusplus:
.text
.align 2
.globl _main
_main:
pushl %ebp
movl %esp,%ebp
call ___main
xorl %eax,%eax
leave
ret
.globl _Map
.data
_Map:
.space 131072
--------------4DOS dir-------------
test 138344 11-22-94 16:06
test.cc 43 11-22-94 16:06
test.exe 145512 11-22-94 16:06
test.s 222 11-22-94 16:07
test.zip 23002 11-21-94 17:45
Kim
- Raw text -