comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Executing machine code?
Date: 1999/05/28
Date: 1999-05-28T00:00:00+00:00	[thread overview]
Message-ID: <7il2p1$pi6$1@nnrp1.deja.com> (raw)
In-Reply-To: 7ijqgs$26o@news2.newsguy.com

In article <7ijqgs$26o@news2.newsguy.com>,
  Samuel Mize <smize@imagin.net> wrote:

> My word.  I doubt you'll find a large body of people with
> experience in this area.  :-)

Actually a lot of GNAT and GNU C users do this without realizing
it because the implementation of trampolines does exactly this
(create code in the stack on the fly and then execute it).

Investigating the gcc implementation of trampolines is a good
idea here, it will show you EXACTLY what needs to be done for
handling the caches correctly.

(the last time I did this kind of thing explicitly was in
implementing complex events for the Alsys x86 CIFO
implementation for NASA. I actually generated the appropriate
boolean predicate code on the fly as a dynamic function :-)


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




      reply	other threads:[~1999-05-28  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-27  0:00 Executing machine code? Ikram
1999-05-27  0:00 ` David Brown
1999-05-27  0:00 ` Samuel Mize
1999-05-28  0:00   ` Robert Dewar [this message]
replies disabled

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