"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