[koogler@bedford.progress.com (David Koogler) writes:]
>The gcc 2.6.2 driver needs sbrk() and I am wondering if anyone has implemented
>it, or how to go about replacing it?
(Long pause while I go look at my gcc-2.4 tree)
My, not very portable, is it? But that's just a flag to print memory, so
why don't you just drop it? Or did somebody come up with some *other* use
for sbrk()? I can pull down some 2.6.2 sources if necessary.
sbrk() comes from the days when your address space was small (64k) and was
organized as:
0 etext edata end sbrk(0) 0xFFFF
Text....Date....BSS.....Heap..... ........Stack
So sbrk(0) was your way of asking where the heap currently ended.
With a VM operating system with a sparse 32-bit address space, the question
makes very little sense at all.
Andy
Received on Fri Mar 24 12:43:19 1995
This archive was generated by hypermail 2.1.8 : Thu Sep 22 2005 - 15:12:17 PDT