Mail Archives: djgpp/1997/09/04/20:20:13
Ian Thompson <leanne DOT mckee AT virgin DOT net> wrote:
> I wish to use protected mode, say 8 megs of flat address space in my
> programme.
> Put data in, take data out etc... Any pitfalls I should look out for?
> An example of how to do this in 'C' would be really apprectiated.
Because of the way DJGPP works, no special hacks or tricks are required in
order to access the entire amount of memory on the system. DJGPP is inherently
and totally a flat-mode 32-bit environment. Go ahead: just malloc() 8MB of
memory... stand back and be amazed. :)
However, if you wish to use typical DOSish things like interrupts and
accessing a specific low-memory address (such as that of the video card) you
will need to be careful. Take a look at the FAQ for more information on
these topics.
--
[- firewind -]
[- email: firewind AT metroid DOT dyn DOT ml DOT org (home), firewind AT aurdev DOT com (work) -]
[- "You're just jealous because the voices talk to -me-." -]
- Raw text -