Where did the text segment get its name?

前端 未结 7 1864
我在风中等你
我在风中等你 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条回答
  •  闹比i
    闹比i (楼主)
    2021-01-31 09:35

    The name segment comes from the memory management techniques used in older times, which is now replaced by paging. I believe the name text comes from the analogy with the novel. Like the text in the novel, the code can be thought of as a piece of text in a novel. The text section of the code tells describes the code or it tells the story of what the program does.

    I agree with kdgregory's answer, but I think the the binary text notation came from this fact.

提交回复
热议问题