comp.lang.ada
 help / color / mirror / Atom feed
From: "Jean-Pierre Rosen" <rosen@adalog.fr>
Subject: Re: how to know sizeof(int)
Date: Thu, 5 Aug 2004 10:16:11 +0200
Date: 2004-08-05T10:16:11+02:00	[thread overview]
Message-ID: <gpqsec.gp11.ln@skymaster> (raw)
In-Reply-To: slrnch2mlq.5o5.adi@ppc201.mipool.uni-jena.de

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 922 bytes --]


"Adrian Knoth" <adi@thur.de> a �crit dans le message de news:slrnch2mlq.5o5.adi@ppc201.mipool.uni-jena.de...
> Jean-Pierre Rosen <rosen@adalog.fr> 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





      reply	other threads:[~2004-08-05  8:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-04 14:58 how to know sizeof(int) Evangelista Sami
2004-08-04 15:18 ` Eric Jacoboni
2004-08-04 15:26 ` Adrian Knoth
2004-08-04 15:32 ` Jean-Pierre Rosen
2004-08-04 19:06   ` Ludovic Brenta
2004-08-05  8:14     ` Jean-Pierre Rosen
2004-08-07  4:09       ` Keith Thompson
2004-08-04 21:52   ` Adrian Knoth
2004-08-05  8:16     ` Jean-Pierre Rosen [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox