←back to thread

288 points Twirrim | 1 comments | | HN request time: 0.213s | source
Show context
pjdesno ◴[] No.41874875[source]
During an internship in 1986 I wrote C code for a machine with 10-bit bytes, the BBN C/70. It was a horrible experience, and the existence of the machine in the first place was due to a cosmic accident of the negative kind.
replies(6): >>41874970 #>>41875234 #>>41875248 #>>41875733 #>>41875834 #>>41876076 #
Taniwha ◴[] No.41875248[source]
I've worked on a machine with 9-bit bytes (and 81-bit instructions) and others with 6-bit ones - nether has a C compiler
replies(2): >>41875661 #>>41875983 #
asveikau ◴[] No.41875661[source]
I think the pdp-10 could have 9 bit bytes, depending on decisions you made in the compiler. I notice it's hard to Google information about this though. People say lots of confusing, conflicting things. When I google pdp-10 byte size it says a c++ compiler chose to represent char as 36 bits.
replies(1): >>41876849 #
larsbrinkhoff ◴[] No.41876849[source]
PDP-10 byte size is not fixed. Bytes can be 0 to 36 bits wide. (Sure, 0 is not very useful; still legal.)

I don't think there is a C++ compiler for the PDP-10. One of the C compiler does have a 36-bit char type.

replies(2): >>41877850 #>>41879553 #
1. asveikau ◴[] No.41879553[source]
I was summarizing this from a Google search. https://isocpp.org/wiki/faq/intrinsic-types#:~:text=One%20wa....

As I read it, this link may be describing a hypothetical rather than real compiler. But I did not parse that on initial scan of the Google result.