This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Preprocessor arithmetic
On Tue, Nov 14, 2000 at 07:30:20AM +0000, Neil Booth wrote:
> Zack Weinberg wrote:-
>
> > Host versus target. [u]intmax_t is the _target_'s largest integer
> > type. HOST_WIDEST_INT is the host's. They aren't necessarily the
> > same thing.
> >
> > It's only an issue when cross-compiling from or to a machine with an
> > unusual definition of either type - I think all commonly used machines
> > these days have both be 64bit. But it's still a concern.
>
> It sounds non-trivial to fix in the case where the target is wider.
> Or are we only worried about cases where target < host, which is
> easier? I imagine it wouldn't be too hard to get that case correct
> now.
Either. Think about cross-compiling from a 32-bit machine to a brand
new shiny 128-bit chip. Okay, this is less likely than cross-
compiling from a 32-bit machine to an embedded 16- or 8-bit chip, but
no less wrong.
zw