什么是组装MIPS上的.TEXT?
什么是 .text?为什么有时 .text 的地址类似于 .text 0x0100
?另外为什么在其他示例中 .data 也有一个类似的地址
.data 0x200:
A:5
.space: 8
What is .text and why sometimes the .text has an adress like .text 0x0100
? Also why on other example the .data has also an adress like
.data 0x200:
A:5
.space: 8
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
.data 是您所有数据所在的部分。例如您的变量等
。.text 部分是您的代码所在的位置。这是程序中应该运行的所有内容。
有时会给数据部分和文本部分一个地址,以便为数据部分留出一定的空间。例如,如果您将文本部分放置在 0x500 处,将数据部分放置在 0x300 处,那么您就有 200 字节的空间用于存放变量和数据。数据。
.data is the section where all your data is. For example your variables etc.
The .text section is where your code is. This is everything that should run in the program.
The data sections and text sections are sometimes given an address to allow a certain amount of space for the data section. For example if you place the text section at 0x500 and the data section at 0x300, then you have 200 bytes of space for your variables and data.