Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cc(1)

brk(2)

malloc(3)

stdio(3s)

end(3)

NAME

end, etext, edata − last locations in program

SYNTAX

extern end;
extern etext;
extern edata;
extern eprol;

DESCRIPTION

These names refer neither to routines nor to locations with interesting contents.  The address of etext is the first address above the program text, edata above the initialized data region, and eprol is the first instruction of the user’s program that follows the runtime startup routine.

When execution begins, the program break coincides with end, but it is reset by the routines brk(,), malloc(,), standard input/output stdio(,), the profile (−p) option of cc(,), and so forth. The current value of the program break is reliably returned by sbrk(0). For further information, see brk(.).

SEE ALSO

cc(1), brk(2), malloc(3), stdio(3s)

Subroutines

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026