Mail Archives: djgpp/1997/08/02/21:32:36
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 -