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,a287efecf9b6c0d7 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!87.79.20.105.MISMATCH!news.netcologne.de!ramfeed1.netcologne.de!216.196.118.151.MISMATCH!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: avr-ada ubuntu cross-compiler build failed Date: Sat, 12 Feb 2011 21:45:14 +0000 Organization: A noiseless patient Spider Message-ID: References: <8k0bl6hdk821ur4gtr0shqki0vhu3jv83g@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="17313"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18kDzDoQfsf9CrsTmU7EPp7mT09Bix86mo=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:9nnHLHq/pOpGBjlqEjQEzOpiixQ= sha1:bdq+Avx1FkVZpD8Z/ZJp48LIiLw= X-Original-Bytes: 1834 Xref: g2news2.google.com comp.lang.ada:18236 Date: 2011-02-12T21:45:14+00:00 List-Id: Brian Drummond writes: > However some of the example code uses renaming, and I can see > why. Naming a register or bit according to it's intent, rather than > its address, does add a lot to readability, essentially "for free" in > terms of code generation. Good point. It would be a lot of work, but inlined subprograms might do the job? With GNAT, you can use high optimisation levels and -gnatn (-gnatN?) but I've found you need to be more selective (increases code size, often slows the executable). Use pragma Inline_Always (a GNAT special), not just Inline.