[comp.sys.ibm.pc] Using Extended/Expanded Memory with Turbo C

jflipton@athena.mit.edu (Jeffrey F Lipton) (11/23/89)

Can anyone help me with suggestions on how to access extended/expanded
memory from Turbo C code? I have a 286 machine, with about 1.6 MB of
extended memory on top of the usual 640 kB. I am writing programs that
would be much more nice to run if they could access this address space.
I think that I have to let the heap allocation routines know about this
memory, but it is unclear how to do this. There are global variables
_heapbase, _heaptop (I think) that may affect this, but my efforts at
changing them generally crash the machine. Please respond to:


				jfl@hx.lcs.mit.edu
				
				Thanks,
					Jeff Lipton

+-------------------------------------------------------------------------+
| Jeffrey F. Lipton, M.D     (jfl@hx.lcs.mit.edu)   "Disobedience was     |
| Clinical Decision Making   (617-956-5910: [w])     man's first virtue." |
| New England Medical Center (617-536-7160: [h])     - Oscar Wilde        |
+-------------------------------------------------------------------------+

+-------------------------------------------------------------------------+
| Jeffrey F. Lipton, M.D     (jfl@hx.lcs.mit.edu)   "Disobedience was     |
| Clinical Decision Making   (617-956-5910: [w])     man's first virtue." |
| New England Medical Center (617-536-7160: [h])     - Oscar Wilde        |