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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,571930b4ff0bc1ee X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-28 12:50:06 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!199.60.229.5!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttls1.wa.home.com.POSTED!not-for-mail From: "Mark Lundquist" Newsgroups: comp.lang.ada References: <3AC03CCE.70E3C2D5@mida.se> <132w6.3493$fy.5811@www.newsranger.com> Subject: Re: Compile time executed functions X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Message-ID: Date: Wed, 28 Mar 2001 20:47:17 GMT NNTP-Posting-Host: 24.20.66.55 X-Complaints-To: abuse@home.net X-Trace: news1.sttls1.wa.home.com 985812437 24.20.66.55 (Wed, 28 Mar 2001 12:47:17 PST) NNTP-Posting-Date: Wed, 28 Mar 2001 12:47:17 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: supernews.google.com comp.lang.ada:6170 Date: 2001-03-28T20:47:17+00:00 List-Id: Ted Dennison wrote in message news:132w6.3493$fy.5811@www.newsranger.com... > > He also wanted the result of the function to be put into the ROM area when the > executable is created by the compiler. Inlining wouldn't do that, would it? It > just prevents the little extra subprogram call overhead (saving and restoring > the register context, etc) when the function is called at runtime. You're right that inlining *alone* doesn't acheive the desired effect. But inlining may allow optimizations to accomplish it. It depends on the order of inlining relative to the various optimizations that the compiler performs. Mark Lundquist Rational Software