🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.intel
Article #863

Re: 80186 C compiler?

#863
From: Michael Davidson
Date: Tue, 13 Oct 1992 12:45
24 lines
1578 bytes
In article <oestline.718926469@maui> oestline@maui.qualcomm.com (Ofer Estline) writes:
>
>	I have a C file which needs to run on a 186.
>	I would like to compile it to see how much room it
>	takes up, and hopefully run it with a SW simulator.
>	Are there any suggestions for 186 C compilers and
>	software sims?  Shareware always a plus of course.
>	--Ofer
>	BTW, there aren't any 80186 based ibm pc's, are there?


There were one or two 80186 based machines a long time ago, but
you don't need one.  You can run 80186 code on a 286, 386 or 486
running in real-mode - the 80186 instruction set is is essentially
the sameas that of the 286 with the exception of the  instructions
that relate to protected mode (lmsw, smsw, lgdt, lidt etc ...)
which are not implemented on the 80186.

Any of the standard PC compilers will generate code that will run
on a 186  - if you want to generate optimal code for the 186 you may
have to lie to the compiler and ask it to generate 286 code if
it doesn't have an explicit 186 option. (although I do seem to remember
a bug in the 80186 multiply instruction which might make this unwise ...)
Technical Details
Message-ID: <1992Oct13.124507.23720@sco.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!scorn!scolex!md
References: <oestline.718926469@maui>

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.intel
Path: arc1-ca.pugleaf.net!sparky!uunet!scorn!scolex!md
From: md@sco.COM (Michael Davidson)
Subject: Re: 80186 C compiler?
Reply-To: md@scodger.UUCP (Michael Davidson)
Organization: The Santa Cruz Operation, Inc.
Date: Tue, 13 Oct 1992 12:45:07 GMT
Message-ID: <1992Oct13.124507.23720@sco.COM>
Keywords: help
References: <oestline.718926469@maui>
Sender: news@sco.COM (Account for Usenet System)
Lines: 24