comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: a question on basic types of interfaces.C
Date: Fri, 24 Nov 2006 08:36:12 +0100
Date: 2006-11-24T08:36:12+01:00	[thread overview]
Message-ID: <4566a0ed@news.post.ch> (raw)
In-Reply-To: <1164283964.323817.256290@m7g2000cwm.googlegroups.com>

evangeli@cnam.fr schrieb:
> hello,
> there are some points regarding Interfaces.C that I want to be sure of
> if I consider Interfaces.C and <limits.h> are the following assertions
> always valid :
> 
> Interfaces.C.int'first = INT_MIN
> Interfaces.C.int'last  = INT_MAX
> 
> Interfaces.C.short'first = SHRT_MIN
> Interfaces.C.short'last  = SHRT_MAX
> 
> Interfaces.C.int'size = sizeof(int) * CHAR_BIT

If you use compatible compilers: yes. I might be nitpicking but if you 
use a 64 bit GNAT-Ada and try to combine it with 16 bit Watcom-C then 
the assertions won't be true.

32 bit GNAT-Ada and 32 bit Watcom-C do actually work - sort of.

Check the documentation of your Ada compiler for a list a compatible C 
compiler :-).

Martin



      parent reply	other threads:[~2006-11-24  7:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-23 12:12 a question on basic types of interfaces.C evangeli
2006-11-23 12:50 ` Jacob Sparre Andersen
2006-11-24  7:36 ` Martin Krischik [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