🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1712

Large data areas

#1712
From: Bob Eager
Date: Fri, 14 Dec 1990 13:32
19 lines
1559 bytes
I have a program that currently runs under MS-DOS. It is a large code, large
data model; around 100K of code and 300K of data. It allocates the data area
using a large malloc call (I forget the function name) during initialisation.

I would like to port this program to OS/2 1.2/1.3. The fact that OS/2 runs in
protected mode means that it is difficult to have any data area greater than
64K in size unless you do a lot of work. The DosAlloc call and friends will
give you memory, but if you want more than 64K then the program has to be
aware of the 64K boundaries and apply the segment/selector increment obtainable
from the system. All of these problems are confirmed by the fact that I can't
see any C library function for getting large data areas (I can't see how it
could be done).

This is a tough one; does the net have any ideas? I have Zortech C/C++ 2.1
and I also have Microsoft C version 6. I don't mind which I use.....
-------------------------+-------------------------------------------------
Bob Eager                | University of Kent at Canterbury
                         | +44 227 764000 ext 7589
-------------------------+-------------------------------------------------
Technical Details
Message-ID: <21520.2768d47d@cluster@ukc.ac.uk>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!ukc!harrier.ukc.ac.uk!zodiac.ukc.ac.uk!cur022

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!mcsun!ukc!harrier.ukc.ac.uk!zodiac.ukc.ac.uk!cur022
From: cur022%cluster@ukc.ac.uk (Bob Eager)
Newsgroups: comp.os.os2.programmer
Subject: Large data areas
Message-ID: <21520.2768d47d@cluster@ukc.ac.uk>
Date: 14 Dec 90 13:32:45 GMT
Organization: Computing Lab, University of Kent at Canterbury, UK.
Lines: 19