mode Byte for transput
Jose E. Marchesi
jemarch@gnu.org
Tue Feb 10 09:14:47 GMT 2026
Hi Chris.
> I was reading over an earlier conversation and I see two possible
> definitions for Byte in that:
>
> mode Byte = short short int
>
> and
>
> mode Byte = short short bits
>
> I don't know that this was ever finalized; could we decide now? At least
> in a provisional way?
The Algol 68 int/bits always corresponds to the C int/unsigned-int in
the target.
In most targets this is:
short short bits - 8 bits
short bits - 16 bits
bits - 32 bits
long bits - 64 bits
long long bits - 64 bits
In avr in 8-bits mode:
short short bits - 8 bits
short bits - 8 bits
bits - 8 bits
long bits - 16 bits
long long bits - 32 bits
In avr in 16-bits mode:
short short bits - 8 bits
short bits - 8 bits
bits - 16 bits
long bits - 32 bits
long lonb bits - 64 bits
So short short bits will always be 8 bits regardles of target, and thats
the mode we wan to alias to Byte.
More information about the Algol68
mailing list