skip to main
|
skip to sidebar
花落无声
Sunday, November 18, 2007
block started by symbol
其缩写是BSS,因为未初始化的变量没有对应的值,所以并不需要存放在可执行对象中,但是因为C标准强制规定未初始化的的全局变量要被赋予特殊的默认值(基本是0值),所以内核要将变量(未赋值的)从可执行代码载入到内存中,然后将零页映射到该片内存上,于是这些未初始化变量就被赋予零值,这样做避免了在目标文件中显示的进行初始化,减少空间浪费.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2021
(1)
►
December
(1)
►
2015
(6)
►
May
(6)
►
2011
(10)
►
November
(2)
►
July
(3)
►
May
(5)
►
2010
(27)
►
September
(2)
►
July
(2)
►
June
(8)
►
May
(3)
►
April
(8)
►
March
(1)
►
February
(2)
►
January
(1)
►
2009
(47)
►
December
(10)
►
November
(10)
►
September
(8)
►
August
(4)
►
July
(7)
►
June
(2)
►
May
(2)
►
April
(3)
►
January
(1)
►
2008
(8)
►
August
(3)
►
July
(2)
►
June
(2)
►
March
(1)
▼
2007
(30)
▼
November
(1)
block started by symbol
►
September
(1)
►
August
(2)
►
July
(1)
►
June
(4)
►
May
(7)
►
April
(10)
►
March
(1)
►
January
(3)
►
2006
(2)
►
December
(1)
►
September
(1)
Links
Google News
About Me
紫气东来
View my complete profile
No comments:
Post a Comment