Where did the text segment get its name?

前端 未结 7 1947
我在风中等你
我在风中等你 2021-01-31 09:06

Traditional assembler, and higher level compilers work with several memory segments, according to intended use. Hence, there is a data segment, a stack segment, a bss,

7条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-31 09:24

    I suggest that the meaning references the assembler (in that case that is for what we are speaking about) language is text, readable text. So the segment .text can be traduced as segment where the code program (text) is written and where the text of the program is, but last is called segment .data. Also it can be called segment .code because is the segment where the program's code is.

    In my opinion should be just called: .code (which is text and also it logically differenciates from the other sections).

提交回复
热议问题