end(3c)
_________________________________________________________________
end, etext, edata
last locations in program
_________________________________________________________________
SYNTAX
extern end;
extern etext;
extern edata;
DESCRIPTION
These names refer to memory locations that demarcate a program:
etext The first address above the program text
edata The first address above the initialized data region
end The first address above the uninitialized data region.
When execution begins, the program break (the first location
beyond the data) coincides with end, but you can reset it with
brk(2), malloc(3C), stdio(3S) (standard input/output), 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)).
SEE ALSO
brk(2), malloc(3C), stdio(3S).
cc(1) in the Programmer's Reference for the DG/UX System
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)