🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #5694

Re: several questions about 386 protected mode programming

#5694
From: DJ Delorie
Date: Wed, 10 Apr 1991 14:58
35 lines
2082 bytes
In article <1991Apr9.141613.26291@jet.uucp> cm@jet.uucp (colin manning) writes:
>Does anyone have any experience of either the Intel 386 C code builder, 
>or the (significantly more expensive) Watcom C8.0/386. Any feelings
>for reliability, quality of support etc ? What produces the best 
>code ? Or should I be thinking of something totally different ?

I recently ported gnu C++ to 386/DOS protected mode.  It should be
posted on comp.binaries.ibm.pc soon-ish (it's big).  The price is
right and the compiler is well known to produce good code.  As for
support, you get the source code!

For those with FTP access, it's in grape.ecs.clarkson.edu in
~ftp/pub/msdos/djgcc/... (get the `readme' first and read it).

>The requirement does not necessarily need a DOS extender, just a 
>protected mode environment, since the application will never have any 
>need to use DOS facilities itself. Do any of the above or other 386 
>development tools available provide such a thing, or do you always
>need a DOS extender ?

You always need a DOS extender at least to get it running.  Mine runs
the application in ring 0, so there's nothing stopping you from
grabbing the IDT, GDT, PD, etc and never returning to the extender at
all . . .

>It is possible to do interrupt handling in protected mode with either
>of the above kits, or do they still hand all that on to the DOS
>extender ?

Mine has no built-in facility for grabbing interrupts, but you can
always do a LIDT instruction and change the interrupt vectors in
assembler to point to interrupt handlers that run in 32-bit mode.

DJ
dj@ctron.com
Technical Details
Message-ID: <1412@bragi.ctron.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!bragi!dj
References: <1991Apr9.141613.26291@jet.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!bragi!dj
From: dj@bragi.ctron.com (DJ Delorie)
Newsgroups: comp.os.msdos.programmer,comp.sys.intel
Subject: Re: several questions about 386 protected mode programming
Message-ID: <1412@bragi.ctron.com>
Date: 10 Apr 91 14:58:04 GMT
References: <1991Apr9.141613.26291@jet.uucp>
Followup-To: comp.os.msdos.programmer
Organization: None whatsoever
Lines: 35