text segment

The segment of a UNIX object file that contains the machine language code for routines in the source file.

image
Figure 2.13 The RISC-V memory allocation for program and data.These addresses are only a software convention, and not part of the RISC-V architecture. The user address space is set to 238 of the potential 264 total address space given a 64-bit architecture (see Chapter 5). The stack pointer is initialized to 0000 003f ffff fff0hex and grows down toward the data segment. At the other end, the program code (“text”) starts at 0000 0000 0040 0000hex. The static data starts immediately after the end of the text segment; in this ...

Get Computer Organization and Design RISC-V Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.