This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Data Type sizes question


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]