<I suppose it depends on the assembly language. I can write PDP-11 assemble
<in C (knowing nearly exactly how the code generator works), but I can't
<write VAX assembler in C since there are VAX instructions that don't
<represent well. SPARC code is also easy to write C code with as there are
<few instructions.
An interesting contardiction as VAX is a extreme superset of PDP-11.
<The place where this really comes home is in one of my other hobbies where
<I write embedded robotics code in C for microprocessors like the 68HC11.
C is ok, but I've felt strongly for years it was better for tasks that
wanted you to be closer to the hardware. I like the control structures
of C. Pascal has been a favorite for years when I really don't want to
know the hardware. I prefer the data structures of Pascal.
Allison
Show replies by date