zlacker

[parent] [thread] 1 comments
1. philwe+(OP)[view] [source] 2010-07-07 21:07:02
Back in the day, every OS was written in assembly. Writing Unix in C rather than assembly was actually a controversial innovation at the time.
replies(1): >>mahmud+Z3
2. mahmud+Z3[view] [source] 2010-07-07 22:22:44
>>philwe+(OP)
Unix was written in PDP-7 assembly and then ported to C.

The porting to C also cemented C's winning of the systems programming race, and fully liberated systems programmers from the underlying machine. C made the machine-word obselete by standardizing on a few types with relative widths.

If that wasn't the case, something like BLISS would have caught on, and BLISS didn't look the same on different platforms; its data types mapped 1:1 to underlying machine words and you had to deal with explicit alignment, allocation, and linkage. Explicit addressing modes and explicit heap and stack allocation modes. IOW, a royal pain in the butt, even though bliss was expression-based and well thought out (read all about Olin Shivers' praises for Bliss, though personally I don't see why: http://www.paulgraham.com/thist.html)

C is good.

[go to top]