Re: AVR Beginner Questions - Ports and Speed
From: Meindert Sprang (mhsprang_at_NOcustomSPAMware.nl)
Date: 02/10/04
- Next message: Meindert Sprang: "Re: AVR Beginner Questions - Ports and Speed"
- Previous message: Frank Bemelman: "Re: AVR Beginner Questions - Ports and Speed"
- In reply to: David Brown: "Re: AVR Beginner Questions - Ports and Speed"
- Next in thread: Ian Bell: "Re: AVR Beginner Questions - Ports and Speed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 10 Feb 2004 09:58:58 +0100
"David Brown" <david@no.westcontrol.spam.com> wrote in message
news:c0a40a$t43$1@news.netpower.no...
> If there are exceptions, then it is not a rule. The common opinion among
> PHBs is that C is "easier" than assembly, and therefore every embedded
> project should be written in C and not assembly. The reality is that C is
> much better than assembly for many types of tasks, but writing in assembly
> is much better for other tasks. And even when you are writing in C, an
> *understanding* of the assembly is essential - you can't understand a cpu
> architecture without understanding its assembly language, and you can't
> write small, fast and reliable code (in any language) for a cpu without
> understanding it properly. How good the code must be depends on various
> factors, such as the balance between time spent in development and the
size
> and speed of the required microcontroller, but writing top-quality code in
C
> requires that you examine the generated assembly code and have enough
> understanding to know how the generated code works, and how it can be
> improved upon. Whenever I start working with a new microcontroller, I
write
> my first few programs (often just test programs) in assembly - even if all
> the rest of the development will be in C.
AMEN!
Meindert
- Next message: Meindert Sprang: "Re: AVR Beginner Questions - Ports and Speed"
- Previous message: Frank Bemelman: "Re: AVR Beginner Questions - Ports and Speed"
- In reply to: David Brown: "Re: AVR Beginner Questions - Ports and Speed"
- Next in thread: Ian Bell: "Re: AVR Beginner Questions - Ports and Speed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|