end(3C) DG/UX R4.11MU05 end(3C)
NAME
end, etext, edata - last locations in program
SYNOPSIS
extern etext;
extern etext;
extern etext;
extern edata;
extern edata;
extern edata;
extern end;
extern end;
extern end;
DESCRIPTION
These names refer neither to routines nor to locations with
interesting contents; only their addresses are meaningful.
etext, etext, etext
The address of these symbols is the first address above the
program text.
edata, edata, edata
The address of these symbols is the first address above the
initialized data region.
end, end, end
The address of these symbols is the first address above the
uninitialized data region.
All three forms of each name are available in an ELF development
environment. In a COFF environment, only the forms with no
underscore and with two underscores are available.
Each of these symbols can also be declared as extern int name() and
referenced accordingly.
SEE ALSO
cc(1), brk(2), malloc(3C), stdio(3S), sde(5).
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 and malloc, by standard input/output routines [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)].
Licensed material--property of copyright holder(s)