comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Strip procedure prologue and epilogue
Date: Tue, 16 Dec 2008 15:06:24 -0800 (PST)
Date: 2008-12-16T15:06:24-08:00	[thread overview]
Message-ID: <b9aa8359-5a73-413b-8c77-eaa25e242893@a26g2000prf.googlegroups.com> (raw)
In-Reply-To: 0bc2447d-ee51-4fce-8bb5-18a0822b7099@r10g2000prf.googlegroups.com

On Dec 16, 11:52 pm, pini <zep...@gmail.com> wrote:
> A usual procedure like
>
> procedure Foo
> begin
>   -- some stuff here;
> end;
>
> generates a prologue like
>
> pushl %ebx
> -- generated code for some stuff here
> popl %ebx
>
> I have a very specific procedure whose purpose is to be called at
> bootloading time and set up a stack, so there is no need for the
> prologue and epilogue of this procedure to exist.
> Is there an ada-only way (through a pragma for instance) to strip the
> prologue and epilogue of this procedure ?
>
> Any help is welcome.

I'm not an expert in this matter but maybe you should look at how
Lovelace boots. The source is in the public monotone server I just
mentioned and there's a snapshot at
http://people.debian.org/~lbrenta/org.os-lovelace-2008-07-02T21:01:02.tar.gz

More info about Lovelace on http://www.lovelace.fr

HTH

--
Ludovic Brenta.



  reply	other threads:[~2008-12-16 23:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-16 22:52 Strip procedure prologue and epilogue pini
2008-12-16 23:06 ` Ludovic Brenta [this message]
2008-12-17  0:01 ` Jeffrey R. Carter
2008-12-17  8:11 ` Rolf
2008-12-17  9:40   ` pini
2008-12-17  9:50     ` Ludovic Brenta
2008-12-19  0:01 ` Samuel Tardieu
replies disabled

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