Re: [PATCH] C undefined behavior fix

Lars Brinkhoff
2002-01-06T00:20:29Z

Paul Mackerras <paulus@samba.org> writes:
> Wow, I didn't know that there was an extended PDP-10 architecture.
> It's 25 years since I did anything on a PDP-10. :)

Ok, the extended KL10 wasn't released until around 1978.

> Would you use 9-bit bytes or 8-bit bytes?

The char type is 9 bits by default. There is also support for an
8-bit char type. With four 8-bit chars in a word, the four least
signifiant bits are unused.

> If you use 9-bit bytes, I'm sure that somewhere in the kernel there
> will be some code that will break because it is assuming 8-bit
> bytes.

> Somehow I'm getting the feeling that your next message is going to
> say "actually, we have been running linux on the KL10 for the past 3
> years". :)

No, I'm not that sinister. If there was a Linux port, I would have
told you already. Anyway, we need to finish the GCC port first.

--
Lars Brinkhoff http://lars.nocrew.org/ Linux, GCC, PDP-10
Brinkhoff Consulting http://www.brinkhoff.se/ programming