|
|
1.1 root 1: .TH END 3
2: .CT 2 mem_man
3: .SH NAME
4: end, etext, edata \(mi last locations in program
5: .SH SYNOPSIS
6: .nf
7: .B extern end;
8: .B extern etext;
9: .B extern edata;
10: .fi
11: .SH DESCRIPTION
12: These names refer neither to routines
13: nor to locations with interesting contents.
14: The address of
15: .I etext
16: is the first address above the program text,
17: .I edata
18: above the initialized data region, and
19: .I end
20: above the uninitialized data region.
21: .PP
22: When execution begins, the program break
23: coincides with
24: .I end,
25: but it is reset by
26: the routines
27: .IR brk (2),
28: .IR malloc (3),
29: standard input/output
30: .RI ( stdio (3)),
31: the profile
32: .RB ( -p )
33: option of
34: .IR cc (1),
35: etc.
36: The current value of the program break
37: is reliably returned by
38: .BR sbrk(0) ;
39: see
40: .IR brk (2).
41: .SH "SEE ALSO"
42: .IR brk (2),
43: .IR malloc (3),
44: .IR stdio (3),
45: .IR cc (1)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.