#C and Assembler
Interesting… I just started about a month or so ago looking at the
asm output of Manx as well… and optimizing certain time-critical loops,
etc. In fact, as I read your message, it was as if I had written it :-).
I've learned a lot about asm from it, but as you mentioned, a side-effect
of looking at the output can teach you a great deal about how to write
better C (for the Manx cmpiler anyway… and in general a lot of times). I
don't have an answer on your dived-shift query, but as an aside… Manx's
assembler is an optimizing assembler, you might get to know 'db' and/or
'sdb' and take a browse at what the 'final' output is (ie. disassemble it
from mem). Btw, I now write some routines, take the output and re-write
the loops and/or change register usage (re-writing the whole routine at
times) then link it in seporately, but I don't use in-line asm (haven't
found a need to yet). – Keith