www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/02/28/18:38:13

From: Gamble C O <gambcl AT essex DOT ac DOT uk>
Date: Mon, 28 Feb 94 20:13:16 GMT
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Is DJGPP suitable for this?

Hello there, I'm sorry about this but I'm about to ask a VERY newbie(ish)
question.
I am currently trying out DJGPP after having used Borland Turbo C++ v3.0
I am writing a program which will need the following global arrays:

float name1[367][100];
float name2[367][100];
float name3[367][100];
int   name4[367][100];
float name5[367][100];

Obviously I will use more meaningfull names but these will do for now.

As you can see, these arrays will need more than the 640K of conventional
memory that my PC provides, so I will need to use the EMS or XMS.
Now I understand from various docs that DJGPP provides a flat memory model
which sounds ideal, but what I would like to know is:

- Do I have to issue any commands to initialise an extender or some sort
	of memory interface?

- Is there a limit on the size of an array in DJGPP and if not, do I need
	to use any special declarations with arrays of this size?

PS:

I have another unconnected query now, I wonder if any of you can help
me with it.

I recently got hold of a tutorial from a game programming company called
Bullfrog. They gave away some C files that were written using Watcom C and
its Rational Extender.

In the tutorial they mention that the code needs to run in 32-bit Protected
Mode and that it uses the extender to access all the memory.

They also mention that the code can be tweaked to run with DJGPP (mentioned
by name!), but I have a problem, the object code needs to be linked with a
library called DEMO.LIB, which was produced using Watcom C.

Is there anyway I can make this into a DJGPP library file, I reckon you need
the original source code to do that but they said that it could be done in the
tutorial, alternatively, is there any way to use the existing Watcom C library
with DJGPP?

Any help much appreciated.

- Raw text -


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