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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,88e7ef9008757431 X-Google-Attributes: gid103376,public From: Francois Godme Subject: Re: Function Calls by Address Date: 1999/09/08 Message-ID: <37D58E65.145A25F3@magic.fr>#1/1 X-Deja-AN: 522297581 Content-Transfer-Encoding: 7bit References: <37CADE68.6AF06F5D@escmail.orl.lmco.com> <37CEEFFA.7D73F78D@magic.fr> <7qooh7$hbh$1@nnrp1.deja.com> <37CFFEA6.921CBE59@magic.fr> <7qp5oo$2un@hobbes.crc.com> <7qptoa$cul$1@nnrp1.deja.com> <37D2E1A7.CAC3F923@magic.fr> <7qvasf$sno$1@nnrp1.deja.com> <37D41767.CEB186F4@magic.fr> <7r2gut$pfn$1@clnews.edf.fr> X-Client: Magic On Line [unknown@ppp-51.net4.magic.fr] X-Accept-Language: fr Content-Type: text/plain; charset=us-ascii Organization: very little Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-09-08T00:00:00+00:00 List-Id: Pascal Obry wrote: > Here we are > talking > about GNAT runtime routines for one specific paltform. The dispatching > model will: > > - always call the same code anyway > - makes GNAT slower > - makes GNAT executable (the compiler executable) bigger > > So I do not see why this could apply there... > > Pascal. Suppose that you are writing the GNAT exception manager and that the frame formats for the C language, the C++ language, the Ada95 language, etc. are all different. Nevertheless, they are still frames and share some abstract notions. As the GNAT runtime can be written in the full Ada95 language:), you could write an abstract tagged type to represent frames. To unwind the stack, you will call the abstract pop a frame method to force dispatching. Now, if an application is made only of Ada code then the dispatching model will: - always call the same code anyway, - ... - ...