Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ end(3) — NEWS-os 5.0.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

brk(2)

malloc(3)



end(3)                  LIBRARY FUNCTIONS                  end(3)



NAME
     end, etext, edata - last locations in program
     eprol, _ftext, _fdata, _fbss - first locations in program
     _procedure_table,                     _procedure_table_size,
     _procedure_string_table - runtime procedure table

SYNOPSIS
     #include <syms.h>
     extern END;
     extern ETEXT;
     extern EDATA;
     extern eprol;
     extern FTEXT;
     extern FDATA;
     extern FBSS;
     extern PROCEDURETABLE;
     extern PROCEDURETABLESIZE;
     extern PROCEDURESTRINGTABLE;

DESCRIPTION
     These names refer neither to routines nor to locations  with
     interesting   contents   except   for  _PROCEDURE_TABLE  and
     _PROCEDURE_STRING_TABLE. Except  for  eprol  these  are  all
     names  of  loader defined symbols.  The address of _ETEXT is
     the first address above the program text,  _EDATA  is  above
     the initialized data region, _END is above the uninitialized
     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(2), malloc(3),
     standard input/output (stdio(3)), the profile (-p) option of
     cc(1), etc.  The current value of the program break is reli-
     ably returned by `sbrk(0)', see brk(2).

     The     loader     defined     symbols     _PROCEDURE_TABLE,
     _PROCEDURE_TABLE_SIZE  and  _PROCEDURE_STRING_TABLE refer to
     the data structures of the runtime procedure  table.   Since
     these  are  loader  defined  symbols the data structures are
     build by ld(1) only if they are referenced.  See the include
     file  <sym.h>  for  the  definition of the runtime procedure
     table and see the include file <exception.h> for its uses.

SEE ALSO
     brk(2), malloc(3)










                                                                1



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