Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ end(3C) — GL1 W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

brk(2)

malloc(3C)

END(3C)  —  Silicon Graphics

NAME

end, etext, edata − last locations in program

SYNOPSIS

extern end;
extern etext;
extern edata;

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 end above the uninitialized data region. 

When execution begins, the program break (the first location beyond the data) coincides with end, but the program break may be reset by the routines of brk(2), malloc(3C), standard input/output (stdio(3S)), the profile (−p) option of cc(1), and so on. Thus, the current value of the program break should be determined by sbrk(0) (see brk(2)).

These symbols are accessible from assembly language if it is remembered that they should be prefixed by _. 

SEE ALSO

brk(2), malloc(3C). 

Version 2.3  —  July 04, 1985

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