From: dmcneill AT pne DOT co DOT uk (Dave McNeill) Newsgroups: comp.os.msdos.djgpp Subject: Re: Reserving space using AS Date: Thu, 19 Sep 1996 17:10:13 GMT Lines: 21 Message-ID: <843152838.14756.0@firewall.futurenet.co.uk> References: <51pjsa$rsu AT cnn DOT exu DOT ericsson DOT se> NNTP-Posting-Host: firewall.futurenet.co.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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.