Re: What micros do you actually hate to work with?
- From: cbarn24050@xxxxxxx
- Date: 10 Oct 2006 15:25:38 -0700
On Oct 10, 10:58 pm, "Wilco Dijkstra" <Wilco_dot_Dijks...@xxxxxxxxxxxx>
wrote:
<cbarn24...@xxxxxxx> wrote in messagenews:1160466087.287511.121520@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Oct 10, 3:07am, "stapleton" <alier...@xxxxxxxxxxxxx> wrote:
"PhilW" <electr...@xxxxxxxxxxx> wrote in
messagenews:452ac796$1@xxxxxxxxxxxxxxxxxxxx
I agree. Historically, C took twice the space of assembly,
but modern optimized C compilers have gotten that down to just 20%.
Unless, that extra 20% code space is a MUST, then its hard to justify
NOT using C over assembly.
Not true, even now C is much bigger than 2 times code space. TheI don't believe that, show us an example.
Well thats not easy but I'll try. Some years ago I was making motor
controlers, a required function was to produce an internal 8 bit number
representing the true rms value of the motor current. Given the
instantanous value is already stored in a byte and can be updated as
often as you require, compile a C code fragment to perform that
funtion. if I remember correctly it was around 60bytes on an ST9 but
lets see how you get on.
biggest difference shows up in small projects where it can easily reach
the times 10 factor.Wrong.
The efficiency of C is closely related to the average size of functions and
their
complexity. Large, complex functions incur slightly more overhead than small
and simple functions. In large projects the number of large and complex
functions increases, while they are less frequent in small projects, so the
efficiency of C actually *increases* on smaller projects.
Wilco
.
- Follow-Ups:
- Re: What micros do you actually hate to work with?
- From: Wilco Dijkstra
- 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: cbarn24050
- Re: What micros do you actually hate to work with?
- From: Wilco Dijkstra
- 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: What micros do you actually hate to work with?
- 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
|