Niv wrote:
Hi, I will shortly need to learn C or C++ as a high level hardware
description language, modelling hardware at a more abstract level than
VHDL. (I'm competent at VHDL & semi-competent at Tcl).
Would /either/ of C or C++ be appropriate for that? It's not obvious.
I've done some minor dabbling in C before, but should I now, assuming
I'm starting out afresh,
start with C or go straight to C++. Will C give me a good grounding
for C++ or add to my (likely) confusion?
My advice would be to pick whichever language you have the best
local support for (ie people who understand & have used the language).
My caricature:
C is simpler. C++ is more expressive.
C lets you shoot yourself in the foot. C++ prevents that,
but sometimes gives you the opportunity to shoot
yourself in the guts instead. With great power comes
great responsibility.
C lets the careful programmer write code that is both
elegant and maintainable. C++ lets the careful programmer
write code that is both elegant and maintainable.
Be a careful programmer.
C compilers and the code they generate need relatively
little resources. C++ compilers and the code they
generate (may) need more. Sometimes the difference
matters. Sometimes it doesn't.
--
Chris "hantwig efferko VOOM!" Dollin
The shortcuts are all full of people using them.