🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #27

Protected Mode trouble

#27
From: Rolf van Lengen [Informatik] gue...
Date: Tue, 03 Nov 1992 15:04
26 lines
1740 bytes
When I run a compiled GNU-C program, it complains that the machine
must be in REAL MODE to run this program, although the PC version of GCC
uses PROTECTED MODE instructions. I found out that the switching mechanism
between REAL MODE and PROTECTED MODE used by GNU-C is a bit complicated.
Obviously GNU-C wants to switch to PROTECTED MODE on its own, and this is
only possible when the machine is in REAL MODE before calling the program.
   Since GNU-C expects the processor to be in REAL MODE, I have to make sure
that no other program switched the CPU to PROTECTED MODE before. (I've "high-
loaded" some TSRs and parts of the DOS system, and this causes a switch to
PROTECTED MODE. So I always have to change my CONFIG.SYS when I use GNU-C.
But this is no solution...)

Anybody who has an idea?
Any hint on this is welcome (perhaps it's only a misunderstanding of the
.DOC files...!?)

(Probably this has been posted before, but sorry..., I didn't find an
answer...)


Please reply via E-Mail to:
lengen@sun.rhrk.uni-kl.de   (guest account, so please refer to my first name)


Bye
 Joerg   :-)
Technical Details
Message-ID: <1992Nov3.150427.14947@rhrk.uni-kl.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!gatech!swrinde!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!sun.rhrk.uni-kl.de!sun.rhrk.uni-kl.de!lengen

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!paladin.american.edu!gatech!swrinde!zaphod.mps.ohio-state.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!rz.uni-karlsruhe.de!stepsun.uni-kl.de!sun.rhrk.uni-kl.de!sun.rhrk.uni-kl.de!lengen
From: lengen@sun.rhrk.uni-kl.de (Rolf van Lengen [Informatik] guest j_meyer)
Subject: Protected Mode trouble
Message-ID: <1992Nov3.150427.14947@rhrk.uni-kl.de>
Sender: news@rhrk.uni-kl.de
Reply-To: lengen@sun.rhrk.uni-kl.de (Rolf van Lengen [Informatik] guest j_meyer)
Organization: University of Kaiserslautern (Germany)
Date: Tue, 3 Nov 1992 15:04:27 GMT
Lines: 29