From: elio AT pvax DOT Ico DOT Olivetti DOT Com >From: elio AT pvax (Elio Tondo) Subject: Re: HUGE exe To: OKRA AT max DOT tiac DOT net (Kimberley Burchett) Date: Tue, 22 Nov 1994 10:14:30 +0100 (MET) Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Reply-To: elio%olivea AT Olivetti DOT Com > > 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. Well, it seems to me fairly stupid to begin flaming each other about such a simple and obvious thing. The only reason I tried to compile your program was that I was curious to understand if really 1.12m2 was broken with respect to BSS usage, and it looks it isn't. I just put your source lines in a file called "aaa.c" (a stupid name, I know), and I did "make aaa". Nothing else, apart from the array name correction. The results are as above. I don't see what I should 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 cannot check easily with the 1.12(m0), since I should reinstall from scratch, and frankly speaking I don't see the reason to make such an effort, when all works well for me. 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. A final note to the other writers on this thread: please do not suggest using malloc or in any case modifying the source; there is no reason to do complicated things, when the BSS handling is there just to save the uninitialized static space in the binary output. If you have time, check the program instead, and report if you get a small binary like me, or a big one like the original poster. Elio _____________________________________________________________________________ | __ ___ | Olivetti - Viale Gramsci 12 - Pisa, Italy | |_ | . _ | _ _ _| _ | Tel: +39-50-516554 Fax: +39-50-502664 | |__ | | (_) | (_) | | (_| (_) | elio AT olivetti DOT com | Standard disclaimers.