home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9135 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.5 KB  |  50 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!noc.near.net!wpi.WPI.EDU!newton.WPI.EDU!nyh
  3. From: nyh@newton.WPI.EDU (Nevo Y Hed)
  4. Subject: Re: BSS ??
  5. Message-ID: <Bu89zC.Js8@wpi.WPI.EDU>
  6. Sender: news@wpi.WPI.EDU (USENET News System)
  7. Nntp-Posting-Host: newton.wpi.edu
  8. Organization: Worcester Polytechnic Institute
  9. References: <18geqmINN6u2@agate.berkeley.edu>
  10. Date: Mon, 7 Sep 1992 21:49:59 GMT
  11. Lines: 37
  12.  
  13. In article <18geqmINN6u2@agate.berkeley.edu> c60b-1fk@e260-1c.berkeley.edu (Ahmon Dancy) writes:
  14. >
  15. >Greetings.  Often when I look through the assembly output of a C
  16. >compiler, the string BSS shows up several times in the code. Can
  17. >anyone explain what the BSS is?
  18.  
  19.  
  20. Assuming you mean a c compiler from the Borland family - I donno how
  21. much of this is equiv in MSC and others.
  22.  
  23.     My sources tell me tha _BSS is the segment of uninitilized data
  24. rather then _DATA [?] segment which is initlized data.
  25.  
  26.     Usually both [xcept on huge model] arge grouped into DGROUP.
  27.  
  28.     While the initilization data is stored in the executible -
  29. there is no need to store uninitilized data [lots of zeros] there too
  30. - that _BSS is assigned zeros at load time.
  31.  
  32.  
  33. examples initilized data:
  34.     char MyData[]="Hello There";
  35.  
  36.     uninitilized data:
  37.     char MyData[10];
  38.  
  39.  
  40.  
  41.  
  42.         I think....
  43.  
  44.             -Nevo
  45.  
  46. -- 
  47. Nevo Y. Hed ............. nyh@wpi.wpi.edu .....................................
  48. ++1-508-754-2491 ........ CS student, Worcester Polytechnic Institute .........
  49. "I like my cigar too, but I take it out of my mouth from time to time" G.Marx .
  50.