Where did the text segment get its name?

前端 未结 7 1874
我在风中等你
我在风中等你 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:20

    It might have something to do with the fact that the code section was usually read-only, and it could also contain strings of characters for the text messages the program could display to the user as messages. Hence the "text" section. This is in contrast to the "data" section which contains pieces of data that can be modified.

提交回复
热议问题