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.5 required=5.0 tests=BAYES_00,FROMSPACE, FROM_ADDR_WS,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,64815469c35bbcbe X-Google-Attributes: gid103376,public From: " "@deneb.cygnus.argh.org (Florian Weimer) Subject: Re: GNAT: pragma Ravenscar Date: 1999/12/01 Message-ID: <877liy2u7d.fsf@deneb.cygnus.argh.org>#1/1 X-Deja-AN: 555646986 References: <38440543.DE6747F3@icn.siemens.de> <87vh6j4tpo.fsf@deneb.cygnus.argh.org> <823itq$inu$1@nnrp1.deja.com> Mail-Copies-To: never Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@cygnus.argh.org X-Trace: deneb.cygnus.argh.org 944085911 8413 192.168.1.2 (1 Dec 1999 22:05:11 GMT) Organization: Penguin on board User-Agent: Gnus/5.070099 (Pterodactyl Gnus v0.99) Emacs/20.4 Mime-Version: 1.0 NNTP-Posting-Date: 1 Dec 1999 22:05:11 GMT Newsgroups: comp.lang.ada Date: 1999-12-01T22:05:11+00:00 List-Id: Jean-Marc Bourguet writes: > In article <87vh6j4tpo.fsf@deneb.cygnus.argh.org>, > " "@deneb.cygnus.argh.org (Florian Weimer) wrote: > > Alfred Hilscher writes: > > > > > I thought when I build the same program twice, once with this pragma > > > and again without this pragma then I would get different sized > > > exe-files (because a smaller runtime included). But when I did so, > > > I've got both times the same size. Do I missunderstand what the > > > pragma does or do I miss some GNAT switches ? I've looked to the > > > documentation but I found no answer there. > > As I understood it, pragma Ravenscar aim was to enforce some > restrictions, not to reduce the run time size. (I seems to recall > another pragma Resticted_Run_Time which had this goal). I've never > used these pragmas so I may be wrong. The Ravenscar restrictions permit the use of a simplified run time environment. The GNAT reference manual says the following (for Resticted_Run_Time, pragma Ravenscar is similar): | This set of restrictions causes the automatic selection of a | simplified version of the run time that provides improved | performance for the limited set of tasking functionality permitted | by this set of restrictions. But GNAT 3.12p doesn't enforce the restrictions, and the standard run time library is always used. Some time ago, I browsed the compiler sources, and IIRC I found nothing which looks like a handler for these pragmas, so I think they are a no-op in the public version.