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,17f2366fc6172420 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!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Access Type Date: Fri, 24 Dec 2010 22:06:51 +0000 Organization: A noiseless patient Spider Message-ID: References: <8d8e1094-d021-4456-85fb-bbb2f3911334@m7g2000vbn.googlegroups.com> <3af2d3d1-ede9-4255-a31b-c5f66c6cee2e@c2g2000yqc.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx01.eternal-september.org; posting-host="dFCm8HWntFqmDIilBLqEJQ"; logging-data="15854"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ylR2v3g6AU2sFyyt6kOAvQ1o2/Gy7f6o=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:+FlfMykpEjGhz2QeoV7fBb67jTo= sha1:T0Lgw1u23E5/pflmFNm86sQErCo= Xref: g2news2.google.com comp.lang.ada:17107 Date: 2010-12-24T22:06:51+00:00 List-Id: kug1977 writes: > I will pass this to Openfirmware which is like a 32-bit C. So I use > > type Ci_Args is record > Service : t_OFW_Service_Name_Access; > ... > end record; > pragma Convention (C, Ci_Args); -- represent CI_Args as a C- > style struct > > Arg : Ci_Args; > > I hope this will prevent the compiler from using something else than a > 32-bit Address > for the Service entry. I think you should also add pragma Convention (C, t_OFW_Service_Name_Access);