PDA

View Full Version : Can anyone reccomend...



Imperito
08-12-2002, 02:31 AM
A good 16-bit C compiler for windows XP?

Unregistered
08-12-2002, 02:35 AM
Why on earth would you want a 16 Bit compiler to use on XP???

fordy
08-12-2002, 02:36 AM
That was me


Fordy

Imperito
08-12-2002, 02:47 AM
And it is because I need the 16-bit virtual machine's emulation of real-mode direct memory addressing, whereas a 32-bit executable has access only to the protected mode 4GB flat address.

Fordy
08-12-2002, 02:51 AM
Originally posted by Imperito
And it is because I need the 16-bit virtual machine's emulation of real-mode direct memory addressing, whereas a 32-bit executable has access only to the protected mode 4GB flat address.

The reason old compilers allowed direct access was that they were running under DOS.......XP hasnt go DOS so I guess it wont work.....

The only was old progs made with these compilers will work is via the virtual machine, and I doubt this will allow you to do what you want to do (whatever that is?)

If you want direct access, download the Driver Developement Kit from MSDN......most likely though you dont need this....

What are you trying to do.....there is probably an API to do what you want

Imperito
08-12-2002, 03:02 AM
Yes, there is an API for it. I would rather do it myself, though, if at all possible.

Yes, I have been informed that a driver running as ring0 would have access. This seems a bit overkill for something that could be done in a 16 bit program.

However, Yes the VM does let me do what I need to do, in a 16-bit application. But not in a 32-bit application.

I can't write to off limits memory, b/c the VM is one way, but I can read the contents of the system address space.

Fordy
08-12-2002, 04:28 AM
I cant see how a 16Bit compiler is going to fool XP into running your apps in Ring0.....And I'm not going to repeat why striving for Real mode is usually a waste of time unless you really need it.....but if your convinced....try here (http://www.compilers.net/)