delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/02/21:32:36

From: p DOT steiner AT t-online DOT de (Peter Steiner)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: djgpp and RAM
Date: 31 Jul 1997 23:19:45 GMT
Organization: Telekom Online Internet Gateway
Lines: 33
Message-ID: <5rr6ii$9te$3@news00.btx.dtag.de>
References: <01bc9dad$1625a480$bee0f9ce AT somebody DOT jaguarsystems DOT com>
Reply-To: p DOT steiner AT t-online DOT de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On 31 Jul 1997 12:29:27 GMT, Locke <lockeg AT usa DOT net> wrote:
>Hey everyone,
>
>I've just started in djgpp and am still trying to understand all the perks
>of a 32 bit programming system.  My understanding is that you can access
>the system ram very easily from a 32 bit program, but that's just what I've
>heard.

Yes, nothing special about it. You don“t even need to know how things work
for most purposes.

>What I'm wondering is, that if I wanted to put say, a two dimensional array
>(a map for a game), in the ram instead of just loading it to conventional
>memory, could I do that?  Or does djgpp do this already?

Just setup the array, as long as you write plain C/C++ there“s no need to
think about “conventional memory“ or “system ram“. You have pointers, you
can malloc, that“s it.  In fact “just loading it to conventional memory“ is
more complicated than to “put it in the ram“. Get used to not having such
DOS limitations.

Problems may occur if you want to use a specific kind of memory for
some reasons (eg. the screen) but that“s explained in the djgppfaq (18.4 How
to move data between your program and conventional memory?).

Ciao,

Peter Steiner
-- 
   _   x    ___
  / \_/_\_ /,--'  p DOT steiner AT t-online DOT de (Peter Steiner)
  \/>'~~~~//
    \_____/   signature V0.2 alpha

- Raw text -


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