Contiguous address spaces
The Beach Bum
jfh at rpp386.Dallas.TX.US
Sun Oct 16 14:25:39 AEST 1988
In article <10130001 at hpisod1.HP.COM> renglish at hpisod1.HP.COM (Robert English) writes:
>The sh behavior which is (or was at one time) appalling was its
>implicit assumption that memory was contiguous and grew in a particular
>direction.
It was particularly disgusting if the .data and .bss segments started
after the stack segment and a brk(0) happened. The return from the
supervisor would bus error and then core dump a UPAGE length core file.
Not very helpful in debugging ...
The Bourne shell is an excellent example of how NOT to write C programs.
More recent versions are slightly better. S. R. Bourne's macros have
been removed [ so I've been told - Praise Ghod! ], but there are still
stupid computer tricks being pulled.
--
John F. Haugh II +----Make believe quote of the week----
VoiceNet: (214) 250-3311 Data: -6272 | Nancy Reagan on Richard Stallman:
InterNet: jfh at rpp386.Dallas.TX.US | "Just say `Gno'"
UucpNet : <backbone>!killer!rpp386!jfh +--------------------------------------
More information about the Comp.lang.c
mailing list