comp.lang.ada
 help / color / mirror / Atom feed
* Ada compiler for 68hc11?
@ 2003-03-28  8:20 Rune Winther
  2003-03-28  9:26 ` Alfred
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Rune Winther @ 2003-03-28  8:20 UTC (permalink / raw)


Hi,

We're using the MIT Handyboard (68hc11) in various student projects and I
would like to be able to develop Ada programs for it. Any hints to where I
might find an Ada compiler for the 68hc11 would be greatly appreciated.

Thanks in advance!

Rune

--
-----------------------------------------------------------
Rune Winther, Ph.D.

Associate Professor             Research Scientist
Faculty of Computer Sciences    OECD Halden Reactor Project
Ostfold College
Norway

+47 69215370
rune.winther@hiof.no
-----------------------------------------------------------





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Ada compiler for 68hc11?
  2003-03-28  8:20 Ada compiler for 68hc11? Rune Winther
@ 2003-03-28  9:26 ` Alfred
  2003-03-28 22:22 ` Stephane Carrez
  2003-03-31  7:38 ` Rune Winther
  2 siblings, 0 replies; 7+ messages in thread
From: Alfred @ 2003-03-28  9:26 UTC (permalink / raw)


Hi,

I asked this questions a few weeks ago. The result is, there is none. I
was pointed to an Ada -> C tool. And one did mention, that he is working
on a GNAT port. So if you use google for search, you should find this
thread with the search key "HC11" or "HC12".


Rune Winther schrieb:
> 
> Hi,
> 
> We're using the MIT Handyboard (68hc11) in various student projects and I
> would like to be able to develop Ada programs for it. Any hints to where I
> might find an Ada compiler for the 68hc11 would be greatly appreciated.
> 
> Thanks in advance!
> 
> Rune
> 
> --
> -----------------------------------------------------------
> Rune Winther, Ph.D.
> 
> Associate Professor             Research Scientist
> Faculty of Computer Sciences    OECD Halden Reactor Project
> Ostfold College
> Norway
> 
> +47 69215370
> rune.winther@hiof.no
> -----------------------------------------------------------



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Ada compiler for 68hc11?
  2003-03-28  8:20 Ada compiler for 68hc11? Rune Winther
  2003-03-28  9:26 ` Alfred
@ 2003-03-28 22:22 ` Stephane Carrez
  2003-03-28 22:42   ` John R. Strohm
  2003-03-31  7:38 ` Rune Winther
  2 siblings, 1 reply; 7+ messages in thread
From: Stephane Carrez @ 2003-03-28 22:22 UTC (permalink / raw)
  To: Rune Winther

Hi!

Rune Winther wrote:
> Hi,
> 
> We're using the MIT Handyboard (68hc11) in various student projects and I
> would like to be able to develop Ada programs for it. Any hints to where I
> might find an Ada compiler for the 68hc11 would be greatly appreciated.
> 

The gcc 3.2.1 compiler can be used but you'll need to use

	pragma No_Run_Time;

because the GNAT runtime is not ported yet to 68HC11.  (I'm also pretty sure
it will not fit as is on an embedded system like the HC11). You can't raise
an exception unless you port the GNAT exception part.


I wrote an Ada example for 68HC11 some time ago.  It uses the 68HC11 bootstrap
mode which means it fits in the 256 bytes constraint (actually even less because
the stack must be within that 256 bytes region!).

You can have a look at the example:

http://gel.sourceforge.net/ada_example.php

It shows how you can access the HC11 IO ports in Ada as well as how you can
cope without the GNAT runtime.

Concerning gcc, you must configure it as follows:

./configure --target=m6811-elf --program-prefix=m6811-elf- --enable-languages=c,ada

And you need a gcc 3.2.1 native Ada compiler to build it (trying to build with
a GNAT ACT compiler could be problematic at this stage).

Beware that it is in alpha state and not checked very much.

	Stephane

-- 
         Home                           Office
E-mail: stcarrez@nerim.fr              Stephane.Carrez@solsoft.fr
WWW:    http://stcarrez.nerim.net      http://www.solsoft.com
         Free the Software!             Simplifying Security Policy Management




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Ada compiler for 68hc11?
  2003-03-28 22:22 ` Stephane Carrez
@ 2003-03-28 22:42   ` John R. Strohm
  2003-03-31 17:24     ` Stephen Leake
  0 siblings, 1 reply; 7+ messages in thread
From: John R. Strohm @ 2003-03-28 22:42 UTC (permalink / raw)


"Stephane Carrez" <stcarrez@nerim.fr> wrote in message
news:3E84CB25.8070307@nerim.fr...
> Hi!
>
> Rune Winther wrote:
> > Hi,
> >
> > We're using the MIT Handyboard (68hc11) in various student projects and
I
> > would like to be able to develop Ada programs for it. Any hints to where
I
> > might find an Ada compiler for the 68hc11 would be greatly appreciated.
> >
>
> The gcc 3.2.1 compiler can be used but you'll need to use
>
> pragma No_Run_Time;
>
> because the GNAT runtime is not ported yet to 68HC11.  (I'm also pretty
sure
> it will not fit as is on an embedded system like the HC11). You can't
raise
> an exception unless you port the GNAT exception part.

According to Jean Ichbiah, Who By All Rights Ought To Know If ANYONE ON THE
PLANET Ought To, an Ada runtime can be written in 4K.  Strictly speaking,
that was 4K Storage_Units.  The Ada runtime for the TI 320C30/C40
floating-point DSP did in fact fit in 4K words (at one instruction per word,
I should add).





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Ada compiler for 68hc11?
  2003-03-28  8:20 Ada compiler for 68hc11? Rune Winther
  2003-03-28  9:26 ` Alfred
  2003-03-28 22:22 ` Stephane Carrez
@ 2003-03-31  7:38 ` Rune Winther
  2003-04-05  7:09   ` Tarjei T. Jensen
  2 siblings, 1 reply; 7+ messages in thread
From: Rune Winther @ 2003-03-31  7:38 UTC (permalink / raw)


Hi!

Thanks for good advice to all of you!

I've got an additional question:

Although there is a way of running Ada code on the Handyboard, I'm also
looking for other, more advanced, controllers. The student projects we're
running are mostly related to safety-critical systems and using a controller
closer to "real-world systems" would be better. Therefore, if anyone could
suggest controllers, for which good Ada tools are (freely?) available, and
that are suitable for general real-time projects in an educational setting,
this would be greatly appreciated.

Best regards,
Rune

--
-----------------------------------------------------------
Rune Winther, Ph.D.

Associate Professor             Research Scientist
Faculty of Computer Sciences    OECD Halden Reactor Project
Ostfold College
Norway

+47 69215370
rune.winther@hiof.no
-----------------------------------------------------------
"Rune Winther" <rune.winther@hiof.no> skrev i melding
news:b610vq$36b$1@dolly.uninett.no...
> Hi,
>
> We're using the MIT Handyboard (68hc11) in various student projects and I
> would like to be able to develop Ada programs for it. Any hints to where I
> might find an Ada compiler for the 68hc11 would be greatly appreciated.
>
> Thanks in advance!
>
> Rune
>
> --
> -----------------------------------------------------------
> Rune Winther, Ph.D.
>
> Associate Professor             Research Scientist
> Faculty of Computer Sciences    OECD Halden Reactor Project
> Ostfold College
> Norway
>
> +47 69215370
> rune.winther@hiof.no
> -----------------------------------------------------------
>
>





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Ada compiler for 68hc11?
  2003-03-28 22:42   ` John R. Strohm
@ 2003-03-31 17:24     ` Stephen Leake
  0 siblings, 0 replies; 7+ messages in thread
From: Stephen Leake @ 2003-03-31 17:24 UTC (permalink / raw)


"John R. Strohm" <strohm@airmail.net> writes:

> "Stephane Carrez" <stcarrez@nerim.fr> wrote in message
> news:3E84CB25.8070307@nerim.fr...
> > ... because the GNAT runtime is not ported yet to 68HC11.  (I'm also pretty
> sure
> > it will not fit as is on an embedded system like the HC11). You can't
                    ^^^^^ 
> According to Jean Ichbiah, Who By All Rights Ought To Know If ANYONE ON THE
> PLANET Ought To, an Ada runtime can be written in 4K.  Strictly speaking,
> that was 4K Storage_Units.  The Ada runtime for the TI 320C30/C40
> floating-point DSP did in fact fit in 4K words (at one instruction per word,
> I should add).

Well, sure. But the current public release of the GNAT runtime is not
designed to fit in 4k; it is designed to support a wide range of
systems with minimal change. Very different criteria!

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Ada compiler for 68hc11?
  2003-03-31  7:38 ` Rune Winther
@ 2003-04-05  7:09   ` Tarjei T. Jensen
  0 siblings, 0 replies; 7+ messages in thread
From: Tarjei T. Jensen @ 2003-04-05  7:09 UTC (permalink / raw)


Rune Winther wrote in
> Although there is a way of running Ada code on the Handyboard, I'm also
> looking for other, more advanced, controllers. The student projects we're
> running are mostly related to safety-critical systems and using a
controller
> closer to "real-world systems" would be better. Therefore, if anyone could
> suggest controllers, for which good Ada tools are (freely?) available, and
> that are suitable for general real-time projects in an educational
setting,
> this would be greatly appreciated.

PC/104 or mini-atx would be a suitable target. There is a intel based
environment somewhere (I don't remember the name).

In a nuclear environment it would perhaps be more suitable with a radiation
hardened target or at least a system with more extensive ecc checking than
usual. E.g. ecc ram on internal CPU buses and registers.

 A VIA epia board would be a cheap and cheerful teaching environment for
students. It has all the stuff which should interest students; 5.1 sound,
ethernet, firewire, USB and a hardware mpeg2 decoder. Since it is cheap it
would be possible to require each student to buy one so they can work at
home.

greetings,





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-04-05  7:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-28  8:20 Ada compiler for 68hc11? Rune Winther
2003-03-28  9:26 ` Alfred
2003-03-28 22:22 ` Stephane Carrez
2003-03-28 22:42   ` John R. Strohm
2003-03-31 17:24     ` Stephen Leake
2003-03-31  7:38 ` Rune Winther
2003-04-05  7:09   ` Tarjei T. Jensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox