From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: C H Forsyth Date: Fri, 4 May 2007 10:24:03 +0100 To: 9fans@cse.psu.edu Subject: Re: [9fans] speaking of kenc In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 58f4b388-ead2-11e9-9d60-3106f5b1d025 having to code anything in assembler is a significant sign of failure: if it's on a general-puprose processor, we have failed to educate processor designers; if it's on (say) a DSP, it's a bit of a mixture of that and people thinking that language design stopped with C, so the language provides too little scope for a compiler sensibly to do the work. as a small example of the first case, there are special device control registers on some models of the power pc. these are essential for IO but require special instructions to access them (even though the same devices often have memory-mapped IO space as well). worse, the register (device) address is part of the instruction, not an operand. (it's the same fault as the old SPARC's mmu control instructions.) only recently has an instruction been added that allows the device register number to be taken from a general-purpose register, but that seems mainly to have been added because they'd run out of address space in the instruction. stunning (in every sense). i pick on that one because the DCRs were ADDED relatively late in the powerpc history. perhaps it was just a form of mid-life crisis.