Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cc(1)

brk(2)

malloc(3C)

stdio(3S)

END(3C)  —  Kubota Pacfic Computer Inc. (C Programming Language Utilities)

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 (char ∗)(0) [see brk(2)].

SEE ALSO

cc(1), brk(2), malloc(3C), stdio(3S)

September 02, 1992

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