Mail Archives: djgpp/1997/11/23/01:31:11
> That looks right. Look at your data:
>
> struct look_up_table breaks down like this:
> int line_length = 4 bytes
> int x[640] = 2560 bytes
> int y[640] = 2560 bytes
> ===========================
> total = 5124 bytes
>
> look_up_table[480] = 5124 bytes * 480 = 2,459,520 bytes (2.4 megs)
>
> 2.4 megs + startup code could easily bring the size to 2.7 megs.
Hi ..
I don't understand the above code..
Why would it affect so much the executable code ?
Wouldn't the statement look_up_table[480] tell the OS to allocate 480
MEMORY locations of size struct look_up_table ? Why would this cause the
executable code to be big ?
Thanks !
Kean
- Raw text -