Mail Archives: djgpp/1997/05/09/19:30:38
> What's the .BSS segment? (or section)
Typically (non microsoft here), you have 3 segments
.text (code)
.data (initialized global data)
.bss (uninitialized global data)
So
int foo = 1; /* .data */
int bar; /* .bss */
I believe that it is common for .bss to be zeroed after it is loaded
in memory (so you can assume bar == 0 in the example above), but
am not sure. This can cause linkage problems, expecially if you
use stub files, as the loader preferences initialized data (this was
on an old pre2.6 Intel 960 version of gcc anyway)
>Is that where the stuff goes you
> defined under UDATASEG in TASM?
No idea
Andrew
- Raw text -