I'm using PocketDOS to emulate ELKS, but I want to develop on it using gcc
and ld
, how can I do this?
+2
A:
From a quick look, it seems that PocketDOS is based on an Intel 80186 emulation. 80186 does not support 32 bit protected mode, so you won't even be able to run DJPP (which is a GCC implementation for DOS) on it since that requires a DOS extender (DPMI) to support 32bit protected mode code. An 80186 is essentially an 8086 with integrated on chip peripherals such as interrupt and DMA controllers.
I don't think you will be able to do this. You will need a 16bit real-mode DOS compiler.
Clifford
2010-02-08 13:40:52
Scroll a little bit on the Download page and you will see that you can see some plugins to emulate CPUs. For example: `Bochs i80486DX CPU emulator plug-in for PocketDOS`. With this will be possible to run such programs?
Nathan Campos
2010-02-08 16:04:50
Here: http://www.pocketdos.com/specifications.htm it certainly says other CPU's via third-party plugins. If you can get it to emulate 386 DJPP should run. However, you will need the emulator to run on your ultimate target, not just a PC.
Clifford
2010-02-08 18:58:36
I'm going to use BOCHS for WinCE to emulate the compiled OS.
Nathan Campos
2010-02-08 19:50:21
Of course, it must be mentioned that ELKS has a C compiler. Just so you guys know.
Amigable Clark Kant
2010-02-09 13:23:33