This is the
talk page for discussing improvements to the
Data segment article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google ( books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
![]() | This article is rated C-class on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||
|
I'm not 100% sure about the Rodata thing, and from all the extensive research I've done, there seems to be a lot of differences between the various systems. Can anyone find a better/more general way of saying that? -- EatMyShortz 14:30, 16 Apr 2005 (UTC)
.section
.rodata ; a read-only data segment containing static data, for example a string
.string "Hello World!" ; a static string
Hpfeil (
talk)
00:48, 23 July 2019 (UTC)
Can anyone draw a picture to explain the difference between .bss/.data/.code segment? Thanks in adavance! Visame ( talk) 06:29, 8 June 2008 (UTC)
63.227.219.18 ( talk) 05:32, 17 June 2011 (UTC)
Could someone please define more precise what in the article text that is concidered wrong or doubtful. It seems to me that some assembly programmer and an other c programmer cannot agree. It must be remembered that the artcle is about memory as such, not PC or PC-memory. 83.249.42.164 ( talk) 22:27, 30 July 2012 (UTC)
I have tested on Linux (x86) with gcc and MacOS (x64) with gcc/clang and proved the information of this article wrong. From lower memory address to higher memory address, initialized variable should come before uninitialized variables. That is, the relative segment sequence should be: code -> constants(string literals) -> initialized data -> uninitialized data -> heap -> stack.
Majenko ( talk) 11:16, 30 December 2015 (UTC)
Why is BraveGNU.org being listed under References at all? -- johayek ( talk) 12:02, 24 February 2016 (UTC)
This is the
talk page for discussing improvements to the
Data segment article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google ( books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
![]() | This article is rated C-class on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||
|
I'm not 100% sure about the Rodata thing, and from all the extensive research I've done, there seems to be a lot of differences between the various systems. Can anyone find a better/more general way of saying that? -- EatMyShortz 14:30, 16 Apr 2005 (UTC)
.section
.rodata ; a read-only data segment containing static data, for example a string
.string "Hello World!" ; a static string
Hpfeil (
talk)
00:48, 23 July 2019 (UTC)
Can anyone draw a picture to explain the difference between .bss/.data/.code segment? Thanks in adavance! Visame ( talk) 06:29, 8 June 2008 (UTC)
63.227.219.18 ( talk) 05:32, 17 June 2011 (UTC)
Could someone please define more precise what in the article text that is concidered wrong or doubtful. It seems to me that some assembly programmer and an other c programmer cannot agree. It must be remembered that the artcle is about memory as such, not PC or PC-memory. 83.249.42.164 ( talk) 22:27, 30 July 2012 (UTC)
I have tested on Linux (x86) with gcc and MacOS (x64) with gcc/clang and proved the information of this article wrong. From lower memory address to higher memory address, initialized variable should come before uninitialized variables. That is, the relative segment sequence should be: code -> constants(string literals) -> initialized data -> uninitialized data -> heap -> stack.
Majenko ( talk) 11:16, 30 December 2015 (UTC)
Why is BraveGNU.org being listed under References at all? -- johayek ( talk) 12:02, 24 February 2016 (UTC)