home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!noc.near.net!wpi.WPI.EDU!newton.WPI.EDU!nyh
- From: nyh@newton.WPI.EDU (Nevo Y Hed)
- Subject: Re: BSS ??
- Message-ID: <Bu89zC.Js8@wpi.WPI.EDU>
- Sender: news@wpi.WPI.EDU (USENET News System)
- Nntp-Posting-Host: newton.wpi.edu
- Organization: Worcester Polytechnic Institute
- References: <18geqmINN6u2@agate.berkeley.edu>
- Date: Mon, 7 Sep 1992 21:49:59 GMT
- Lines: 37
-
- In article <18geqmINN6u2@agate.berkeley.edu> c60b-1fk@e260-1c.berkeley.edu (Ahmon Dancy) writes:
- >
- >Greetings. Often when I look through the assembly output of a C
- >compiler, the string BSS shows up several times in the code. Can
- >anyone explain what the BSS is?
-
-
- Assuming you mean a c compiler from the Borland family - I donno how
- much of this is equiv in MSC and others.
-
- My sources tell me tha _BSS is the segment of uninitilized data
- rather then _DATA [?] segment which is initlized data.
-
- Usually both [xcept on huge model] arge grouped into DGROUP.
-
- While the initilization data is stored in the executible -
- there is no need to store uninitilized data [lots of zeros] there too
- - that _BSS is assigned zeros at load time.
-
-
- examples initilized data:
- char MyData[]="Hello There";
-
- uninitilized data:
- char MyData[10];
-
-
-
-
- I think....
-
- -Nevo
-
- --
- Nevo Y. Hed ............. nyh@wpi.wpi.edu .....................................
- ++1-508-754-2491 ........ CS student, Worcester Polytechnic Institute .........
- "I like my cigar too, but I take it out of my mouth from time to time" G.Marx .
-