Mail Archives: djgpp/2002/01/21/04:30:20
from broker_3 AT yahoo DOT com (ee) :
>Is there a true 32-bit OS that can execute C programs involving
>interrupts without using extentions or Protected Mode or any such tricks ? I am
>looking for a OS that does not require C programs to have OS specific
>commands written into it. Ideally a compiler and OS that can create a
>"straight" executable without support apps.
I think this is a design flaw of the Intel x86 line of CPU chips, originally
designed when 640 KB RAM was thought plenty for anybody's needs. Now for
backward compatibility, these CPUs start in 16-bit real mode. I think PowerPC
is straight 32-bit, Sparc (non-Ultra) is straight 32-bit, Alpha and Ultra Sparc
are 64-bit, and as far as I know, these CPUs don't distinguish between real and
protected mode.
from Andrew Cottrell <andnews AT ihug DOT com DOT oz DOT au>:
> I am not aware of such an OS as interrupts are not defined in C. By
this I mean that interrupts by their nature are used to access some
hardware sepcific to an OS or hardware platform which is non portable
to other OS's and other hardware platforms.
> If you would like to find a 32 bit RTOS where the RTOS or compiler has
support for interrupts then these do exist, but the code is usually
not portable to another RTOS. Sounds like this is what you want. There
are a allot of them out there, check out www.esp.com or do a search.
There are a few free RTOS's available, but I have not used them. They
vary in what they support and features.
> If you want to play with serial comms and other hardware device in a
PC hardware platform and not have to worry about the complexities of
how it is done then there are a number of serial comms packages
available for DJGPP that hide the complexities of access the hardware.
Where do I find such serial comms packages, and would they be for 32-bit DOS
(DPMI) without MS-Windows?
- Raw text -