Hello all, I have been following the recent clashes between various participants (see the post "Compiling differences between C51 v7.03 and v8.06" or "introducing the smoked sardine complex" :) :) ). C was given, I think, a unjustified bash in that post. I wouldn't like to have been compelled to explicitly cast too often. Most potentially dangerous casts can be filtered out by a static code analyzer. Can you give an example of more strongly-typed languages than C that are used in embedded development?
C was given, I think, a unjustified bash in that post.
I thought the proponents of 'make it up as you go along' terminology were the ones being bashed, not the programming language.
Can you give an example of more strongly-typed languages than C that are used in embedded development?
C++ is used, but I'm not sure how widely. I believe there is a C++ compiler (or possibly a C++ to C translator) available for the 8051.
I'm now bracing myself for the cries of 'You can't do that! Wrong language! Too big! Too bloated! Hello world needs a 64 bit CPU and 32 gig of RAM!' from all the usual experts who have never tried it.
C++ is used, but I'm not sure how widely. I believe there is a C++ compiler (or possibly a C++ to C translator) available for the 8051. Ceibo promotes their - whatever they call it - translator from C++ to Keil C.
http://www.ceibo.com
Erik
IAR has native C++ support. But the juicy parts are stripped since '51 architecture isn't exactly suited for some parts of the C++ language constructs and runtime library.