Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ etext(3C) — svr4 — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cc(1)

brk(2)

malloc(3C)

stdio(3S)



END(3C-SVR4)        RISC/os Reference Manual         END(3C-SVR4)



NAME
     end, etext, edata - last locations in program

SYNOPSIS
     extern etext;

     extern edata;

     extern end;

DESCRIPTION
     These names refer neither to routines nor to locations with
     interesting contents; only their addresses are meaningful.

     etext
          The address of etext is the first address above the
          program text.

     edata
          The address of edata is the first address above the
          initialized data region.

     end  The address of end is the first address above the unin-
          itialized data region.

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

NOTE
     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 brk, malloc, the standard
     input/output library [see stdio(3S)], by the profile (-p)
     option of cc, and so on.  Thus, the current value of the
     program break should be determined by sbrk ((char *)0) [see
     brk(2)].



















                        Printed 11/19/92                   Page 1



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