mode Byte for transput
chris hermansen
clhermansen@gmail.com
Wed Feb 11 00:49:55 GMT 2026
Thanks for the reply Jose. I will go with the short short bits definition.
On Tue, Feb 10, 2026 at 1:14 AM Jose E. Marchesi <jemarch@gnu.org> wrote:
>
> 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.
>
--
Chris Hermansen · clhermansen "at" gmail "dot" com
C'est ma façon de parler.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/algol68/attachments/20260210/90110e8b/attachment.htm>
More information about the Algol68
mailing list