Re: 80186 free C compiler
- From: iddw@xxxxxxxxxxx (Dave Hansen)
- Date: Fri, 30 Sep 2005 15:02:39 GMT
On Fri, 30 Sep 2005 12:02:07 +0100, John Wilkinson
<john.wilkinson@xxxxxxxxxxx> wrote:
>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?
IIRC, there was a book on programming embedded DOS systems that
included a Borland 3.something C compiler. You might look in the
Borland Museum as well, though I think that stuff is older.
Someone else mentioned OpenWatcom, which might work as well.
>Am I correct in thinking gcc can't target the 80186 processor?
That's my understanding.
>
>I understand I need a locator as well?
>Again is there a free one?
John Fine has written jloc which should do what you want. He calls it
"zero price shareware," which means he wants you to register it if you
use it, but he dosn't charge you anything for it. See
http://my.execpc.com/~geezer/johnfine/ for more info.
>
>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!!
The 80C186 user's manual from Intel (if you can find one) pretty much
describes most of what you need for the chip. And it's important for
things like setting up the chip selects. libgloss I suspect is for
handling C initialization requirements and to call main.
With a locator, you don't necessarily have to do all that, just jump
to a routine called "_start" or some such. Although you should
probably have a routine to zero static RAM, etc. That means you'll
have to explicitly initialize static variables in your code (rather
than declaring them with an initializer), but usually that's a small
price to pay (as long as you don't forget...)
HTH,
-=Dave
--
Change is inevitable, progress is not.
.
- References:
- 80186 free C compiler
- From: John Wilkinson
- 80186 free C compiler
- Prev by Date: Re: 80186 free C compiler
- Next by Date: Re: Recommendation for prototype CM (BGA reflow, mainly)
- Previous by thread: Re: 80186 free C compiler
- Next by thread: Recommendation for prototype CM (BGA reflow, mainly)
- Index(es):
Relevant Pages
|