|
From: <or...@vp...> - 2003-01-22 20:56:06
|
Hello! Abhijit Shylanath wrote: > In DOS (real-mode), memory is banked. So you need two thingies to address > it: the segment and offset. I was aware of that, I just didn't know, how much is the maximum. I think DOS provides memory in 64K pages, as you said. BTW, "640K ought to be enough for anybody." - Bill Gates, 1981 > However, in most general applications, you won't need to bother with them. > You simply call new or malloc(), and they return an appropriate far pointer Yes, I knew that. Actually I wanted to know, how much memory can I get from a DOS program, that is running under Windows, from a console. As I saw in the command-prompt settings, the memory can be set for the console. > Also, in protected-mode DOS (DPMI), memory is linear. Use djgpp: > http://www.delorie.com/djgpp > for this, its a GCC port for DPMI. It's also got an IDE similar to > Turbo-C++, called RHIDE. You may or may not be able to use it with Dev. Thanks, although I have already heard of that too, but I don't really want to develop anything for DOS. I suppose I would be able to use djgpp with Dev, I would just need to set the compiler executables. > HTH, and sorry for the late reply. No problem, but thank you very much. I only needed the answer because I went to a Secondary (High?) School Programming competition(?) (yet I'm only 17 :), and they still provide Borland C++ 3.1 for programming. -- Greetings, Balázs |