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,afb4d45672b1e262 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed01.chello.at!newsfeed02.chello.at!news.hispeed.ch.POSTED!not-for-mail Message-ID: <1232450.6Lqeqa7iHK@linux1.krischik.com> From: Martin Krischik Subject: Re: Any way of persuading GNAT/GCC to implement a true overlay and not a pointer? Newsgroups: comp.lang.ada Date: Sat, 01 Apr 2006 19:56:21 +0200 References: User-Agent: KNode/0.10.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@hispeed.ch Organization: hispeed.ch NNTP-Posting-Host: 84.74.134.212 (84.74.134.212) NNTP-Posting-Date: Sat, 01 Apr 2006 20:45:11 +0200 X-Trace: 804be442eca37f1ef237102173 Xref: g2news1.google.com comp.lang.ada:3702 Date: 2006-04-01T19:56:21+02:00 List-Id: Doobs wrote: > I dont want the run-time overhead of > copying the contents via unchecked conversion to another data type. Actually the compiler is free to optimize away the copy in unchecked conversion. In fact: the compiler can optimize away any variable which a vanilla declaration. i.E. not declared with any extra like "aliased", for 'Address, pragma volatile etc. pp. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com