Re: Learning embedded coding, which uC?



On Tue, 2 Aug 2005 08:56:32 +0100, Chris Hills <chris@xxxxxxxxxxxx>
wrote:

>I have been in the industry 20 odd years and come across very few using
>Forth. I think it is not very common. You get the work because you are
>known and have a history.

Most of our customers want solutions rather than processes. In
the main they don't really care what the code is written in.
Just to pre-empt performance comments from people who last
used Forth 10 or more years ago, modern Forth compilers
generate native code of the same quality as commercial C
compilers.

When they do care, they appreciate low code size and speed
of development with Forth. In the rare cases when code has
been written in both C and Forth to the same specification
by programmers of similar ability using good compilers, the
Forth code has been about half the size of the C code in
terms of target memory usage.

I have no numerical data as to why Forth code should be
smaller than C code, but I suspect that it has to with
the low function call overhead in Forth promoting small
routines which in turn leads to higher code reuse.

At least for deep embedded systems, as to why development
is faster, there is just no substitute for interactive
bottom-up debugging on the target hardware. This contributes
to code development, to hardware bring-up, and to software
and hardware co-design.

Stephen

--
Stephen Pelc, stephenXXX@xxxxxxxxxxxxxxxxxxxxxxxxxx
MicroProcessor Engineering Ltd - More Real, Less Time
133 Hill Lane, Southampton SO15 5AF, England
tel: +44 (0)23 8063 1441, fax: +44 (0)23 8033 9691
web: http://www.mpeltd.demon.co.uk - free VFX Forth downloads
.



Relevant Pages

  • Re: Fortran 2008 (was Re: Statement function host association)
    ... optimizing compiler for f77 code for their hardware. ... Other vendors were involved in this process too. ... compilers, but also there are numerous independent commercial ... 15 years or so of the new language features, array syntax still has ...
    (comp.lang.fortran)
  • Re: non-specific os C++ building
    ... C++ is a platform-independent language. ... the C runtime libraries. ... you will have to interface with the hardware ... ... There are C++ compilers ...
    (comp.lang.cpp)
  • Re: Another computer algebra system : smib
    ... run very very well on a common configuration of hardware and software strikes me as far more valuable than trying to water it down so it runs on many different hardware and software configurations. ... The failures of code in one or more of the multiple Sage environments merely illustrates how poorly the notion of "machine independence" is supported by the C specification, current C compilers, and whatever else you need. ...
    (sci.math.symbolic)
  • Re: Same code and different result, Why?
    ... No, it is undefined for all other compilers, as well. ... of sequence point is common for all C/C++ compilers. ... for the course for the technology you are using right now, ... sometimes decided by the underlying hardware, ...
    (microsoft.public.vc.language)
  • Re: Compilers and embedded systems
    ... >doing dedicated R&D for tools in embedded system would be a great ... See also the VFX Forth compilers at ... Stephen Pelc, stephenXXX@xxxxxxxxxxxx ...
    (comp.arch.embedded)