Re: allocate memory statically

From: Chris Hills (chris_at_phaedsys.org)
Date: 02/12/05


Date: Sat, 12 Feb 2005 10:11:09 +0000

In article <cuisrh$mh1$1@nntp1.jpl.nasa.gov>, E. Robert Tisdale
<E.Robert.Tisdale@jpl.nasa.gov> writes
>
>C is a "dead-end" language.

C is the main language for embedded work and it's use is expanding
(there are a lot more embedded systems year on year)

>The only future for C programs and C programmers is C++.

Actually no. In fact C++ will have a shorter life span. There are other
languages that can and are replacing C++. However nothing is replacing C
in the expanding embedded market.

>This is why it is important for young C programmers
>to write C programs that are also valid C++ programs.

This is disastrous advice. C is no longer a subset of C++. If you learn
C in the way you suggest it will turn out poor C++ programmers. It
matters less for desktop use but most embedded work (where C is THE
language and there is often no C++ compiler) is high-integrity, safety
of mission critical. C should be taught and used as C not a cut down C++

>Old C programmers are too "set in their ways"
>to learn the new programming language.

Really? Any evidence of this?

>Some old C programmers sabotage their C programs
>by including code that is incompatible with C++.

C and C++ are different languages. C++ now has parts that are not
compatible with C. We discussed this on the ISO C panel. If you want C
and C++ compatibility then C++ will have to move closer to C.

>Their programs will die when they die (or retire).

This is silly. Embedded systems have 20+ years life-span. C just goes on
and on. BTW many of the most common MCU on the planet dont have C++
compilers.

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/\
/\/\/ chris@phaedsys.org www.phaedsys.org \/\/
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/



Relevant Pages

  • Re: SETI
    ... but almost all of us are born with the ability to master a language. ... That's orbiting at 19 miles a second, so it's reckoned, ... Of the galaxy we call the Milky Way. ... In this amazing and expanding Universe. ...
    (talk.origins)
  • Re: Python syntax in Lisp and Scheme
    ... Python will certainly have enough in its ever expanding bag of tricks ... You could imagine, as an exaggerated example, a language ... A good language has a good set of language constructs and a good ... Such a language is Scheme (or Lisp). ...
    (comp.lang.python)
  • Re: question about categoricity
    ... > but since Chris's example involves expanding the language of the first ... denotes i in B, for all i, and nothing denotes you in B." ... Prev by Date: ...
    (sci.logic)
  • Re: The Paradox of Speciation
    ... compatibility can build up over time into big changes that do. ... The selection pressures ... French is the product of intelligent design, ... let me switch to any other language. ...
    (talk.origins)
  • Re: The Paradox of Speciation
    ... compatibility can build up over time into big changes that do. ... Selection acts on whole phenotypes. ... French is the product of intelligent design, ... let me switch to any other language. ...
    (talk.origins)