delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/22/00:27:50

Message-ID: <34C6D850.747B@post.comstar.ru>
Date: Thu, 22 Jan 1998 08:25:37 +0300
From: Dim Zegebart <zager AT post DOT comstar DOT ru>
Reply-To: zager AT post DOT comstar DOT ru
Organization: Comstar Ltd.
MIME-Version: 1.0
To: Jason A Bennett <jasonb AT gfsmortgage DOT com>
CC: DJGPP Mail List <djgpp AT delorie DOT com>
Subject: Re: Port from DOS/16M
References: <01BD2683.A52CA660@¯JASONB>

Jason A Bennett wrote:
> 
> I'm now working for a company that has a HUGE program running under
> DOS/16M, complete with tons of libraries and source files. I'd love to move
> out from under this encumbrance, but unfortunately my experience with
> extended memory on DOS isn't too great.
> 
> So, in lieu of the online guide being finished (would love that porting
> section), what generally will be involved in porting from 16M to DJGPP?
> Will it just be a quick library recompile and change a few calls, or more?
Hi,
Unfortunately, I don't know exactly what is DOS/16M, some type of
extender ?
DJGPP works under protected mode of iCPU , and it uses flat memory
model. It means
you may allocate as much memory as you need (512M maximum with cwsdpi -
free DPMI server)
Where are no additional functions to allocate memory just do
ptr=malloc(...); or
char matrix[3000][3000]; it works too.
So, if you have 'far' pointers in your code just do '#define far'
More complete information is in official DJGPP FAQ - a perfect document
not about C/C++ but
about DJGPP environment and its specific features.
BTW, I'm using DJGPP for about 1,5 year at home and at works with no
problems at all 
(exepting my bugs ;)

-- 
____ ____ 
|   \   /   Dim Zegebart
____/____   

Moscow Russia
WWW - http://www.geocities.com/siliconvalley/pines/7817
DZcomm - comm library for Allegro
Palantir - multytasking kernel for Allegro (based on PDMLWP)

PS. Just last note - DJGPP is free and comes both in bin and src
distribution sets. You may use it even for creating commercial product.
(See copyrights note for details)

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019