Uninitialized global data (was Re: Global variables)
Paul Fox
fox at alice.marlow.reuters.co.uk
Sat Feb 27 03:17:30 AEST 1988
In article <1744 at phoenix.Princeton.EDU>, rjchen at phoenix.Princeton.EDU (Raymond Juimong Chen) writes:
> I believe that global data initialized to zero go into a special
> segment called "bss". What it stands for is beyond me. ...
'bss', I believe, comes from the early IBM assemblers. It stands for 'Block
Started by Symbol'. This was/is a pseudo op which reserves spaces in
the data area, used as in:
fred: bss 12 // Reserve 12 bytes.
[Excuse the syntax if its wrong].
I presume that this pseudo op was present in the early PDP-7 & 11 assemblers as
well. (On the PDP-10, BLKZ or BLK was used).
More information about the Comp.lang.c
mailing list