Re: What micros do you actually hate to work with?
- From: "Didi" <dp@xxxxxxxxxxx>
- Date: 10 Oct 2006 16:36:37 -0700
Hi Joerg,
Certainly when you have to do things like wide multiplying when there is
no HW multiplier and there can only be 30-40 processor cycles alotted to
that part of the code.
actually compilers typically come with optimised math functions, apart
from variable read/write there is not much to improve there. The main
disadvantage of C is that it is human unfriendly, compared to a good
and flexible enough assemler with sufficiont library code at hand it
compares like a hieroglyph based language to an alphabet based one.
The x10 factor does not come out of what the compiler does alone,
I never said that; it comes mostly of what the human does using it.
Some assemblers are not as good as C - say, native RISC like
PPC - but others are. I am clearly biased to my VPA, which looks
much of the time like a 68k/CPU32 assembler, although it has
long since gone much beyond that, and can do complex things
which a C compiler would likely not be able to do (I put some examples
at
http://tgi-sci.com/vpaex/ ,
the macro complexity achievable
in combination with a DPS command_script can be seen in
vpasttbq.sa , the rest show just some examples, the .txt being
listings with generated ppc native code).
As for smaller projects, (several kilobytes of code), I can hardly
see how C can accellerate that, they will take between 2 and 4
weeks to program either way. If something can be done within
a day ot two in C and one does not have the libraries to match
that in assembly, well, then I would justify C, but we are talking
projects, not playing around.
The reason can often be summed up in a single symbol: $
I sure get that, my question is is really life that tough ... :-) :-)
Dimiter
------------------------------------------------------
Dimiter Popoff Transgalactic Instruments
http://www.tgi-sci.com
------------------------------------------------------
Joerg wrote:
Hello Dimiter,
The key words are "a good assembly programmer", I guess. They seem
to be very scarce... To add to your point, a good assembly programmer
will typically be able to beat by a factor of at least 10 a C written
code
in terms of speed and memory resources.
Certainly when you have to do things like wide multiplying when there is
no HW multiplier and there can only be 30-40 processor cycles alotted to
that part of the code.
But these are things which have been commented a lot.
The real question I have after reading this thread (not specifically
related to the posting I quote) is
"why do some people use a processor they hate to use?".
The reason can often be summed up in a single symbol: $
Then there are logistics reasons. It's tough to find 2nd sourcing for
anything but the lower-tier 8051 types. This is also one reason why I do
a lot of things analog with some logic chips sprinkled in.
--
Regards, Joerg
http://www.analogconsultants.com
.
- Follow-Ups:
- Re: What micros do you actually hate to work with?
- From: Mike Silva
- Re: What micros do you actually hate to work with?
- From: Wilco Dijkstra
- Re: What micros do you actually hate to work with?
- From: larwe
- 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: Joerg
- What micros do you actually hate to work with?
- Prev by Date: Re: What micros do you actually hate to work with?
- Next by Date: Re: Best Method to Download Data from a datalogger?
- 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
|