Re: A92: BSS


[Prev][Next][Index][Thread]

Re: A92: BSS




>The advantage of using a BSS section is that whatever you put in it will
>not add to the size of a program. The disadvantage is that, if something
>that you put in a BSS section needs to be initialized, you must do the
>initialization manually.
>
>If you try to initialize something that's in a BSS section, the
>initialization will be ignored. The only thing the assembler will record is
>the size. So if, inside a BSS section, you do
> str: dc.b "This won't make it into the compiled program.",0
> num: dc.l 38759
>what will happen is that there will be 46 bytes of uninitialized memory at
>"str" and 4 bytes of uninitialized memory at "num".

So in the BBS section, can I put :

screen	dcb.b	3840,0

if I want that Fargo creates a new buffer for saving the screen ??
(So I don't need to call HeapAlloc and HeapFree.)

Benoit SCHERRER


Follow-Ups: