Standard C Library Functions end(3C)
NAME
end, end, etext, etext, edata, edata - last locations in
program
SYNOPSIS
extern int etext;
extern int edata;
extern int 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 location after
the last read-only loadable segment.
edata The address of edata is the first location after
the last read-write loadable segement.
end If the address of edata is greater than the
address of etext, the address of end is same as
the address of edata.
If the address of etext is greater than the
address of edata, the address of end is set to
the page boundary after the address pointed to by
etext.
USAGE
When execution begins, the program break (the first location
beyond the data) coincides with end, but the program break
can be reset by the brk(2), malloc(3C), and the standard
input/output library (see stdio(3C)), functions by the pro-
file (-p) option of cc(1B), and so on. Thus, the current
value of the program break should be determined by sbrk
((char *)0).
References to end, etext, and edata, without a preceding
underscore will be aliased to the associated symbol that
begins with the underscore.
SEE ALSO
SunOS 5.11 Last change: 31 Mar 2006 1
Standard C Library Functions end(3C)
cc(1B), brk(2), malloc(3C), stdio(3C)
SunOS 5.11 Last change: 31 Mar 2006 2
|