home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / linux / 16348 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.1 KB

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