home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!wirzeniu
- From: wirzeniu@klaava.Helsinki.FI (Lars Wirzenius)
- Subject: Re: HALLOC and HUGE ptrs in Microsoft C
- Message-ID: <1993Jan22.144653.24939@klaava.Helsinki.FI>
- Organization: University of Helsinki
- References: <1993Jan21.175608.4279@arizona.edu>
- Distribution: world,local
- Date: Fri, 22 Jan 1993 14:46:53 GMT
- Lines: 25
-
- jjr@ace.ece.arizona.edu (Jeffrey J. Rodriguez) writes, about using
- arrays larger than 64 kB under MS-DOS (notoriously an awkward
- problem):
-
- >This sure seems cumbersome. It also seems that a program written for
- >PC-DOS using halloc and huge ptrs would not run on a Sun running
- >UNIX. So much for portable C.
-
- Quite. The approaches I have followed are (more or less in the order
- of preference):
-
- a) forget about DOS machines and write the code under Unix
- b) use a compiler under DOS that doesn't require halloc or other
- monstrosities for >64 kB arrays (djgpp is my choice)
- c) don't use >64 kB arrays
-
- I avoid halloc and huge pointers and other compiler-specific methods
- like the plague they are. Not only are they non-portable, they would
- require me to learn and understand them first (lazy, ain't I?), and to
- have to rely on the compiler to get things right while I'm not very
- certain that I have understood things correctly.
-
- --
- Lars.Wirzenius@helsinki.fi (finger wirzeniu@klaava.helsinki.fi)
- MS-DOS, you can't live with it, you can live without it.
-