Re: 80186 free C compiler



On Fri, 30 Sep 2005 11:31:42 GMT, Richard wrote:

>
>"John Wilkinson" <john.wilkinson@xxxxxxxxxxx> wrote in message
>news:ff0yg393dw7q$.x6somhk77uvk$.dlg@xxxxxxxxxxxxx
>> Hi,
>> I am new to all this but I am about to try my first embedded design using
>> an 80C186 processor.
>> Is there a free C compiler available?
>> Am I correct in thinking gcc can't target the 80186 processor?
>>
>> I understand I need a locator as well?
>> Again is there a free one?
>>
>> Where can I get startup code? The book I have is Programming Embedded
>> Systems by Michael Barr, and he says that you could use libgloss, but I
>> can't find it anywhere on the internet!!
>>
>> Best regards,
>> John.
>
>
>http://www.openwatcom.org/ can target 186 and is free. It creates .exe's
>however that run on top of DOS and it sounds like you just have a bare
>board. However the compiler source code is available so if nothing else you
>might be able to get the startup code. There are free DOS versions around
>should that make it easier for you.

The next release of Openwatcom (1.4) has specific support for embedded work,
you do not need a locator anymore, the linker will do it for you.
Note that OW is a cross-compiler, you can use it to create embedded code
whether you run the Windows, OS/2 or DOS.

Mat Nieuwenhoven


.