comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jrcarter@acm.org>
Subject: Re: Ada and embedded applications
Date: Wed, 06 Jun 2001 04:09:48 GMT
Date: 2001-06-06T04:09:48+00:00	[thread overview]
Message-ID: <3B1DACF1.C643AF4A@acm.org> (raw)
In-Reply-To: 9finbs$2ft$1@nh.pace.co.uk

Marin David Condic wrote:
> 
> 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."

Pragma Preelaborate exists to allow the elimination of elaboration,
including initialization. Obviously you can't use controlled types in a
pre-elaborable unit, so finalization disappears, too. I would think that
if you can get the compiler to accept your procedure with pragma
Preelaborate that it would do what you want.

-- 
Jeff Carter
"I blow my nose on you."
Monty Python & the Holy Grail



  reply	other threads:[~2001-06-06  4:09 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
2001-06-06  4:09           ` Jeffrey Carter [this message]
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