[comp.lang.c] A C compiler that *works* ?

CMH117@psuvm.psu.edu (Charles Hannum) (04/09/90)

In article <3119@castle.ed.ac.uk>, djm@castle.ed.ac.uk (D Murphy) says:
>
>After having a long fight with TC 2.0 about allocating a block of memory
>128K long, and just about chucking the damned thing out of the window,
>I am wondering if there is a PC C compiler anywhere that actually does work
>and will let me do this ?
>
>The code has to work on an 8086, so no '386 specific stuff will be suitable,
>unfortunately. If I can't get it to work I'll use assembler but I'd really
>rather not do this.

If it must run on an 8086, just use the Huge memory model.  The other five
memory models will not support >64K blocks of data because the 8086 itself
will not.  The Huge memory model generates extra code to get around this,
but only at the price of speed.


Virtually,
- Charles Martin Hannum II       "Klein bottle for sale ... inquire within."
    (That's Charles to you!)     "To life immortal!"
  cmh117@psuvm.{bitnet,psu.edu}  "No noozzzz izzz netzzzsnoozzzzz..."
  c9h@psuecl.{bitnet,psu.edu}    "Mem'ry, all alone in the moonlight ..."

jharkins@sagpd1.UUCP (Jim Harkins) (04/11/90)

>After having a long fight with TC 2.0 about allocating a block of memory
>128K long, and just about chucking the damned thing out of the window,

This may seem obvious, but if you're problem is an "out of memory" error
message maybe you really are out of memory.  Try compiling to an executable,
leaving the integrated environment, and then running the executable.


-- 
jim		jharkins@sagpd1

We are all aware of the high cost of alcohol abuse.  To help solve this problem
take this signature to your local liquor store for $1.00 off your next purchase.