Re: What micros do you actually hate to work with?
- From: "Frank Bemelman" <f.bemelmanq@xxxxxxxxxxxxxxxxx>
- Date: Wed, 11 Oct 2006 09:42:20 +0200
"Jim Granville" <no.spam@xxxxxxxxxxxxxxxxxxxxxx> schreef in bericht
news:452c35c9$1@xxxxxxxxxxxxxxx
Frank Bemelman wrote:
"Joerg" <notthisjoergsch@xxxxxxxxxxxxxxxxxxxxx> schreef in bericht
news:IlVWg.21517$Ij.7449@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Generally speaking, asm is dead. Generally, using C will produce
better code in less time. Generally, with less than tiny asm
projects, a C version will give you a smaller footprint.
Generally, using asm is a waste of time and energy and
produces lower quality code.
Not dead at all. There are cases where you must be sure to control
something in x machine cycles plus/minus zero. But that would be more
like using the uC as a logic chip.
Generally speaking, my dear. I know about cases where a 74HCT74
beats every processor no matter how clever you program it.
Hey, I shouted *years* ago on this newsgroup "asm is dead". Seems
there is a little bit more concensus now.
Now I could start shouting about C is dead, use C++ instead,
but I think that is too much for today.
I wouldn't call ASM dead - Walter's example shows that it has got
more accessible : another usefull choice, as well as InLine ASM ...
I said 'generally', several times.
All uC HLL users certainly should KNOW assembler.
In C versus ASM, the ASM camp always throw in those examples
where a very speedy/tight piece of software is needed. Such are
more a matter of being smart rather than the language you use.
In most cases (if not all) it is only a very small portion of
your project. When writing that portion of software, and only
when the compiled result is not satifying, it is time to have
a look at the compiled result. And you have to know a little
bit about what you are working with. Using 32 bit longs on a
8 bit uP results in long and slow code. Since it is such a
hassle to work with 32 bit longs in assembler for an 8 bit uP,
such mistakes are not made in ASM. In ASM you are more aware of
that. Once you are familiar with you compiler and target, you
don't have to check that often anymore.
Perhaps if you meant 'Vendor assembler mnemonics', and
Label: JMP Label,
then yes, that subset of assembler is being used less.
A *lot* less than less.
--
Thanks, Frank.
(remove 'q' and '.invalid' when replying by email)
.
- Follow-Ups:
- Re: What micros do you actually hate to work with?
- From: Jonathan Kirwan
- Re: What micros do you actually hate to work with?
- References:
- What micros do you actually hate to work with?
- From: hsmith
- Re: What micros do you actually hate to work with?
- From: Vladimir Vassilevsky
- Re: What micros do you actually hate to work with?
- From: Roman
- Re: What micros do you actually hate to work with?
- From: steve
- Re: What micros do you actually hate to work with?
- From: Roman
- Re: What micros do you actually hate to work with?
- From: steve
- Re: What micros do you actually hate to work with?
- From: CBFalconer
- Re: What micros do you actually hate to work with?
- From: Didi
- Re: What micros do you actually hate to work with?
- From: PhilW
- Re: What micros do you actually hate to work with?
- From: Didi
- Re: What micros do you actually hate to work with?
- From: Ulf Samuelsson
- Re: What micros do you actually hate to work with?
- From: Joerg
- Re: What micros do you actually hate to work with?
- From: Frank Bemelman
- Re: What micros do you actually hate to work with?
- From: Joerg
- Re: What micros do you actually hate to work with?
- From: Frank Bemelman
- Re: What micros do you actually hate to work with?
- From: Jim Granville
- What micros do you actually hate to work with?
- Prev by Date: Re: Quickie ZigBee Application Kit from Rabbit!
- Next by Date: Re: MD5 in C for 8051
- Previous by thread: Re: What micros do you actually hate to work with?
- Next by thread: Re: What micros do you actually hate to work with?
- Index(es):
Relevant Pages
|