From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c7e469ccb3e8d0e7 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!a26g2000prf.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Strip procedure prologue and epilogue Date: Tue, 16 Dec 2008 15:06:24 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <0bc2447d-ee51-4fce-8bb5-18a0822b7099@r10g2000prf.googlegroups.com> NNTP-Posting-Host: 94.108.195.43 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1229468784 29623 127.0.0.1 (16 Dec 2008 23:06:24 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 16 Dec 2008 23:06:24 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a26g2000prf.googlegroups.com; posting-host=94.108.195.43; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.18) Gecko/20081030 Iceape/1.1.13 (Debian-1.1.13-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:3985 Date: 2008-12-16T15:06:24-08:00 List-Id: On Dec 16, 11:52 pm, pini 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.