comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: Ada and embedded applications
Date: Tue, 5 Jun 2001 09:38:03 -0400
Date: 2001-06-05T13:38:04+00:00	[thread overview]
Message-ID: <9finbs$2ft$1@nh.pace.co.uk> (raw)
In-Reply-To: akXS6.63509$%i7.48165181@news1.rdc1.sfba.home.com

I wouldn't say that it is *impossible* to get an Ada program into 512 bytes
of memory, but you'd have to have a compiler that made it possible to build
code with no runtime (like GNORT) or you might find yourself dragging along
way too much other stuff. Technically speaking, I don't think this is a
*language* problem - more one of a *linkage* problem. There may be some
language issues such as this: I write a single procedure to run in my 512
bytes of memory. Will Ada demand that there be some kind of
elaboration/initialization/finalization that takes place such that I've got
to drag along more stuff than I need? Could a compiler be built (and would
it be *legal* Ada or a subset?) that was smart enough to detect that my
single procedure program required nothing but jumping to the starting
address and executing from there? I'd suspect thjat the answer is "Yes, but
it may require bending language rules and will certainly require you don't
use specific features."

Naturally, you couldn't use the whole of the Ada language in a setting like
that, which raises issues of validation. It may be possible to target Ada
for that sort of microcontroller, but it doesn't seem to be high on
anybody's priority list. Possibly it is viewed as a) too difficult to
accomplish in a reasonable span of time and b) too little interest on the
part of the folks who program these things to make it worth investing the
energy in it.

MDC
--
Marin David Condic
Senior Software Engineer
Pace Micro Technology Americas    www.pacemicro.com
Enabling the digital revolution
e-Mail:    marin.condic@pacemicro.com
Web:      http://www.mcondic.com/


<tmoran@acm.org> wrote in message
news:akXS6.63509$%i7.48165181@news1.rdc1.sfba.home.com...
> >that may not offer much support for them. (Floating point? Context
switching
> >for tasks? Lots of things get to be a problem on small chips.) C, lacking
>   I used to regularly compile and run Ada 83 programs in 16 bit DOS on
> a 286, often generating a small memory model (64K) .com file.  But I grant
> that's gigantic compared to 512 bytes of RAM.





  reply	other threads:[~2001-06-05 13:38 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-04 18:59 Ada and embedded applications Chris Campbell
2001-06-04 19:34 ` Marin David Condic
2001-06-04 21:12   ` Chris Campbell
2001-06-04 21:33     ` Matthew Woodcraft
2001-06-04 21:33     ` Ted Dennison
2001-06-04 22:33       ` Chris Campbell
2001-06-05  7:55         ` Chris Campbell
2001-06-05 15:03           ` Ted Dennison
2001-06-04 22:09     ` Marin David Condic
2001-06-05  2:18       ` tmoran
2001-06-05 13:38         ` Marin David Condic [this message]
2001-06-06  4:09           ` Jeffrey Carter
2001-06-05 18:23         ` Randy Brukardt
2001-06-05 18:25         ` Randy Brukardt
2001-06-05 20:18           ` Marin David Condic
2001-06-05  7:45     ` Martin Dowie
2001-06-05 13:49       ` Marin David Condic
2001-06-05 20:47         ` Martin Dowie
2001-06-05 10:15     ` Rod Chapman
2001-06-04 21:02 ` Larry Kilgallen
2001-06-04 20:06   ` Ehud Lamm
2001-06-04 21:18     ` Ted Dennison
2001-06-05 12:35     ` Marc A. Criley
2001-06-05 19:00       ` Pascal Obry
2001-06-04 21:15 ` Robert A Duff
2001-06-04 21:30   ` Chris Campbell
2001-06-05  2:06     ` Jeffrey Carter
2001-06-05 14:04     ` Marin David Condic
2001-06-05  7:50 ` Martin Dowie
2001-06-05 14:24   ` John English
2001-06-08 23:55     ` Robert A Duff
2001-06-09 12:47       ` Ehud Lamm
2001-06-14 16:27       ` Pat Rogers
2001-06-06  2:31 ` Ken Garlington
2001-06-06 11:14   ` Chris Campbell
2001-06-06 15:47     ` Marin David Condic
2001-06-06 17:57     ` Jerry van Dijk
2001-06-06 22:32       ` Chris Campbell
2001-06-06 22:37         ` Chris Campbell
2001-06-06 15:42   ` Marin David Condic
replies disabled

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