DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

end(S)


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 uninitialized data region.

References

brk(S), cc(C), malloc(S), Intro(S)

Notices

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 Intro(S)], by the profile (-p) option of cc, and so on. Thus, the current value of the program break should be determined by sbrk (0) [see brk(S)].
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005