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,6b77ce1ba18f9267 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-07 02:50:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!news-peer.gradwell.net!not-for-mail Newsgroups: comp.lang.ada From: porton@ex-code.com (Victor Porton) Date: Thu, 07 Nov 2002 12:16:06 +0500 References: Subject: Re: Import a type from C Mime-Version: 1.0 X-Newsreader: knews 1.0b.1 Content-Type: text/plain; charset=us-ascii Message-ID: <3dca4583$0$299$bed64819@news.gradwell.net> NNTP-Posting-Date: 07 Nov 2002 10:50:43 GMT NNTP-Posting-Host: 195.149.39.13 X-Trace: 1036666243 news.gradwell.net 299 mail2news/195.149.39.13 X-Complaints-To: news-abuse@gradwell.net Xref: archiver1.google.com comp.lang.ada:30513 Date: 2002-11-07T10:50:43+00:00 List-Id: In article , Stephen Leake writes: > "Frank J. Lhota" writes: > >> pragma Convention( C, My_Data ); > > Note that "a C compiler" really means "the C compiler that the Ada > compiler knows about, with its default command line args". For > example, GNAT will assume Gnu C, _without_ -fpacked. ObjectAda > probably assumes MS C, again without the "packed" flag. That has > caused me some major problems, when linking against C code compiled > _with_ the -fpacked flag. May be specifying both pragma Convention( C, My_Data ); and pragma Pack( My_Type ); will be compatible with gcc -fpacked?