Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ end(S) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

brk(S)

cc(CP)

malloc(S)

stdio(S)


 end(S)                         6 January 1993                         end(S)


 Name

    end, etext, edata - last locations in program

 Syntax


    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 unini-
    tialized 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 rou-
    tines of brk(S), malloc(S), standard input/output stdio(S), the profile
    (-p) option of cc(CP), and so on.  Thus, the current value of the program
    break should be determined by sbrk ((char *)0).  See brk(S).

 See also

    brk(S), cc(CP), malloc(S), stdio(S)

 Standards conformance

    end, etext and edata are not part of any currently supported standard;
    they are an extension of AT&T System V provided by the Santa Cruz Opera-
    tion.


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