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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c0fb538211c02258 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!news.glorb.com!news.zanker.org!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!tiscali!newsfeed1.ip.tiscali.net!proxad.net!freenix!oleane.net!oleane!skymaster!nobody From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada Subject: Re: how to know sizeof(int) Date: Thu, 5 Aug 2004 10:16:11 +0200 Organization: Adalog Message-ID: References: <5f59677c.0408040658.5976777a@posting.google.com> NNTP-Posting-Host: mailhost.axlog.fr X-Trace: s5.feed.news.oleane.net 1091696734 2559 195.25.228.57 (5 Aug 2004 09:05:34 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Thu, 5 Aug 2004 09:05:34 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Xref: g2news1.google.com comp.lang.ada:2565 Date: 2004-08-05T10:16:11+02:00 List-Id: "Adrian Knoth" a �crit dans le message de news:slrnch2mlq.5o5.adi@ppc201.mipool.uni-jena.de... > Jean-Pierre Rosen wrote: > > >> how can i know the result of a sizeof(int) (in C). > >> i did not find the approppriate stuffs in interfaces.C. > > Interfaces.C.Int'Size/8 > > Is it specific to a single compiler? How can someone (gnat) know > about the size of an Integer in C? The standard doesn't define it, > does it? > > As far as I know the size of internal datatyes is compiler-dependent. Sure - but the definition of Interfaces.C.Int is guaranteed to match the definition of Int in C, or at least in the C compiler you are interfacing to. Remember you never interface with another language, you interface with another compiler! -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr