This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Big-endian Gcc on Intel IA32
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: dewar at gnat dot com
- Cc: gcc at gcc dot gnu dot org, torvalds at transmeta dot com
- Date: Tue, 18 Dec 2001 07:37:09 +0100
- Subject: Re: Big-endian Gcc on Intel IA32
- References: <20011217211252.431D3F28BD@nile.gnat.com>
dewar@gnat.com writes:
> This is a much trickier language feature to design than you would
> imagine. We have been struggling with this in Ada for a while.
Yes, in the general case, this is of course right. But for two's
complement, octet-adressed machines, endian representation clauses for
discrete types could be implemented without major problems, I think,
at least if you restrict yourself to the little/big endian case and
ignore PDP endian.
The general case (which has to include processors with, say, 18 bit
storage units) is much harder, of course.