> 1 and 3 are not really that different, so you're down to two examples.
> C is OK for newer embedded systems (microcontrollers), older ones are
> what they are and ASM may well be the way to go.  But even there, ASM
> is often just the lazy way rather than the more economical way.

perhaps you haven't programmed many microcontrollers.  usually the
volumes are high and the per unit cost is very important so you end up
with very simple parts with very little ram/flash.  the one i worked on
earlier this year had low speed usb interface, 2 gp registers, 256 bytes of ram 
and 4k of flash.

i found it easy enough to program in assembly, but i don't think you'd
get very far with c.  i just don't think you could fit things into memory.

> I have a feeling brucee will point out that the gain in efficiency in
> using ASM is insufficient to justify the additional costs in
> complexity and error potential.

i don't understand the assumption that the only reason to use assembly is
cycle efficiency. 

also, could you explain why this is "lazy"? or why assembly is more
complicated?

clearly, an assembly is more difficult to wield than c.  but you don't
use them for the same thing.

this absolutist argument that c is teh bomb. asm suks is silly.  it's like
arguing bicycles and ferraris.  which one you need (and which one gets
you there faster) depends on what you're doing.

- erik

Reply via email to