Article View: comp.os.msdos.programmer
Article #2302Re: Turbo C++ and Extended Memory, Huge model, large data structs
From: Peter Lim
Date: Fri, 14 Sep 1990 17:20
Date: Fri, 14 Sep 1990 17:20
39 lines
2182 bytes
2182 bytes
>
> Zortech C++ supports the development of applications using the Rational
> DOS Extender. This gives the program the capability to directly access up
> to 16Mb of memory (it runs the program in 286 protected mode). You will
> need to purchase the Rational DOS Extender in addition to the Zortech compiler
> to do this. Call Zortech at 800-848-8408 for more info.
>
> You still cannot declare or allocate a single object that consumes more than
> 64k, even in protected mode. For your application, I suggest instead
> allocating 512 arrays of 512 bytes each, as in:
> char *array[512];
> for (i = 0; i < 512; i++)
> array[i] = (char *) malloc(512);
>
How hard would it be to get the compiler to generate code that will allow
declaration of a single object > 64K ? Metaware High-C used to advertise
"Can your C-compiler do this ? .... int data[1000000];". So, they can
do it.
I reckon it is harder when you have to be able to generate real mode normal
DOS code as well. But can you give me an idea how hard ?
> P.S. I wrote the compiler.
> ----------
>
Overall its a nice compiler. I like it.
Regards, ## Life is fast enough as it is ........
Peter Lim. ## .... DON'T PUSH IT !! >>>-------,
########################################### :
E-mail: plim@hpsgwg.HP.COM Snail-mail: Hewlett Packard Singapore, :
Tel: (065)-279-2289 (ICDS, ICS) |
Telnet: 520-2289 1150 Depot Road, __\@/__
... also at: pnl@hpfipnl.HP.COM Singapore 0410. SPLAT !
#include <standard_disclaimer.hpp>
Technical Details
Message-ID:
<34890003@hpfinote.HP.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpfcso!hpfinote!pnlReferences:
<ajai.653069128@talos.sce.carleton.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpfcso!hpfinote!pnl From: pnl@hpfinote.HP.COM (Peter Lim) Newsgroups: comp.os.msdos.programmer Subject: Re: Turbo C++ and Extended Memory, Huge model, large data structs Message-ID: <34890003@hpfinote.HP.COM> Date: 14 Sep 90 17:20:01 GMT References: <ajai.653069128@talos.sce.carleton.ca> Organization: Hewlett Packard CICD Lines: 39