This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.
jab3@hotmail.com said... > > From: Jeffrey A Law <law@hurl.cygnus.com> > > In message > <Pine.LNX.4.05.9902081606350.164-100000@lo-pc3035a.hitc.com>you wr > >ite: > > > [...] then 'long', 'int', 'short' and 'char' can also be > > > 64 bits in certain circumstances? > >I believe they can. I'm not aware of any such target, but I do not > >think it is disallowed by the standard. > > TI's C compiler for the C40 declares long, int, short, and char to all > be 32 bits (all memory accesses on the C40 are 32 bits). I haven't > checked the c4x port in egcs. > -- > John A. Breen > jab3@hotmail.com > > ADI's SHARC goes that even better. It also says sizeof(double) == sizeof(float) == sizeof(long) == sizeof(int) == sizeof(short) == sizeof(char) Although, the hardware is capable of doing either 16 bit 32 bit 40 bit 48 bit memory fetches! Of course all arithmetic is done on 32 bits (unless you use the multiplier accumulator in which case you can do 80 bit!) -- Al Lehotsky