Mail Archives: djgpp/1996/09/19/14:58:18
frazer AT rtp DOT ericsson DOT se (Scott Frazer) wrote:
>I would like to reserve a chunk of memory for a buffer in assembly
>similar to this:
> .data
>_ExampleBuffer:
> .align 4
> .fill 100000, 1, 0
>This works fine, but the executable size goes up 100k! I think
>maybe '.comm', '.lcomm', or '.space' might do the trick, but I
>would rather know the right way now rather than messing things
>up when I blank the buffer and spend time trying to find
>unrelated bugs.
the c compiler uses '.comm _label,size' for uninitialized
static data. i reckon that '.space' in a .bss section
would have the same effect.
- Raw text -