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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e7536778f913e61a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!transit3.readnews.com!transit4.readnews.com!news-out.readnews.com!postnews3.readnews.com!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Exception handling overhead? From: "Peter C. Chapin" References: <9faab480-850c-4ec5-b05e-8daec0301928@x5g2000yqk.googlegroups.com> Message-ID: User-Agent: Xnews/5.04.25 Date: 25 Apr 2009 11:58:17 GMT Organization: SoVerNet (sover.net) NNTP-Posting-Host: 5083658b.news.sover.net X-Trace: DXC=H2SZBc4Sg5EoV<7HGJPfoNK6_LM2JZB_C_U]cg_dl2C@:WUUlR<856O^\3d9O7CbeGaKfL0^hi4BD X-Complaints-To: abuse@sover.net Xref: g2news2.google.com comp.lang.ada:5543 Date: 2009-04-25T11:58:17+00:00 List-Id: Ludovic Brenta wrote in news:9faab480-850c- 4ec5-b05e-8daec0301928@x5g2000yqk.googlegroups.com: > GNAT provides two exception handling mechanisms: zero-cost and setjump/ > longjump. "Zero-cost" really means zero _distributed_ cost, i.e. you > incur a cost only when raising an exception, as you describe. The > older setjump/longjump mechanism costs some execution time and memory > whether you raise exceptions or not. It is possible to select either > mechanism when compiling your program. Thanks! I'll check it out. It sounds interesting. Peter