www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/21/06:06:00

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 (Kimby)
Date: Mon, 21 Nov 1994 11:03:07 +0100 (MET)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu

>   Want to see a BIG program?  Here it is:
> 
> 
> char Map[256][512];
> 
> int main() {
> 
>   memset(CellMap,0,sizeof(CellMap));
> }
> 
> 
>   The exe it makes is about 156k.  Anybody know how to tell memset that I 
> really want it to run at RUN TIME?  It "optimizes" itself even with 
> optimizations off.

I tried it with 1.12m2, and (after fixing the array name on the first line),
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? ;-)

   Elio

 _____________________________________________________________________________
|  __           ___                | Olivetti - Viale Gramsci 12 - Pisa, Italy
| |_  | .  _     |  _   _   _|  _  | Tel:  +39-50-516554   Fax:  +39-50-502664
| |__ | | (_)    | (_) | | (_| (_) | elio AT olivetti DOT com | Standard disclaimers.


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019