As a programming exercise, I am writing a mark-and-sweep garbage collector in C. I wish to scan the data segment (globals, etc.) for pointers to allocated memory, but I don’t know how to get the range of the addresses of this segment. How could I do this?
As a programming exercise, I am writing a mark-and-sweep garbage collector in C. I
Share
The bounds for text (program code) and data for linux (and other unixes):
Where those symbols come from: Where are the symbols etext ,edata and end defined?