home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
- From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
- Newsgroups: comp.os.linux
- Subject: Re: Does Linux use segmentation?
- Message-ID: <1992Nov11.124341.11531@klaava.Helsinki.FI>
- Date: 11 Nov 92 12:43:41 GMT
- References: <1992Nov11.011359.27473@cbnewse.cb.att.com> <1dpov0INNqcu@agate.berkeley.edu> <1992Nov11.021246.3563@news.acns.nwu.edu>
- Organization: University of Helsinki
- Lines: 14
-
- hpa@nwu.edu (H. Peter Anvin) writes:
- >On the other hand, this technique is not the way UNIX and C likes to do it.
- >They prefer a flat virtual memory space, and use system calls for file
- >access.
-
- Actually, C has nothing against the kind of segments you describe. It
- is quite wrong (under the standard) to compare pointers to different
- arrays except for equality. There's nothing, for example, to stop
- malloc from allocating a completely new segment. It could, in fact,
- be quite a nice aid to debugging.
-
- --
- Lars.Wirzenius@helsinki.fi (finger wirzeniu@klaava.helsinki.fi)
- MS-DOS, you can't live with it, you can live without it.
-