Mail Archives: djgpp/1994/11/21/06:06:00
> 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 -