From: Mike Poulton
Subject: Re: Which Microcontroller to use?
Date: 20 Sep 2002 01:20:35 GMT
Organization: MTP Technologies
On 19 Sep 2002, Chuck Simmons said:
> Mike Poulton wrote:
>> I would be against it! For a program this simple, there is no need
>> for assembly. All the functions can be handled through a C or BASIC
> There is something seriously backwards here. The reason for using high
> level languages is to handle complex functions easily. Optimizing C
> compilers are in fashion and for excellent reasons. Assembly language
> is used for speed in simple functions or in cases where nothing else
> is available. Complex functions are painful to write in assembly
> language and hard to debug.
Most all functions are painful to implement in assembly. As far as I
can see, there are only three reasons to use assembly for anything. The
first is to learn assembly, or just to be TechMacho. Second, assembly
can be used to write code which must be highly optimized, either for
speed or to fit in limited memory. Finally, assembly is needed to
implement functions not already available through the high level
compilers. In the case of his project, all the functions should be
available through the high level language, speed is not really an issue,
memory isn't either, and he doesn't need to learn assembly or prove his
TechManliness. So, C seems like the way to go. Why spend a day or more
writing the routine in assembly, when it can be done much more quickly
and easily in a high level language?
Not only do I speak for my company, I AM my company!
Live free or die!