This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Data Type sizes question
- From: John Lu <jlu at lsil dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 28 Oct 2002 15:33:14 -0600 (CST)
- Subject: Data Type sizes question
- Reply-to: John Lu <jlu at dts0 dot lsil dot com>
Hi,
I'm working on an architecture that supports 16-bit,
32-bit, and 40-bit data. I am trying to support the following data
types on the archtiecture:
int -> QImode, 16-bits
long -> HImode, 32-bits
long long -> SImode, 40-bits ??????
These sizes were set by defining INT_TYPE_SIZE, LONG_TYPE_SIZE
and LONG_LONG_TYPE_SIZE appropriately. Is this feasible with gcc?
I have a compiler with just the 16-bit and 32-bit sizes working fine.
When I try to add the "long long" type, the SImode instructions are
used for 64-bit structures. GCC seems to think that the SImode
supports 64-bit data (which I guess is reasonable). Is there a way
to prevent GCC from doing this?
Thanks,
John Lu