i have heard that c's translation to asm is more effiecient than c++'s translation to asm. Can anyone prove/disprove this?
i have heard that c's translation to asm is more effiecient than c++'s translation to asm. Can anyone prove/disprove this?
I guess there's no real answer to this as it would depend on the individual compiler.......a bit of a generalisation?
Sounds like a stupid statement meant only to cause arguments on "which is best" (a topic of which this board already has hundeds of threads)
well, C is a bit more lower level than C++ is. in C, you need to allocate memory manually, but in C++, you have the magical new and delete operators. classes getting translated to asm is not the easiest process either. polymorphism, inheritance, and other OOP things tend to become slower than C programs (and larger).
Er....the new and delete operators allocate memory as it is done in C (malloc.....) but there are a few extra things to new and delete (calling constructors, type safety....) and it is part of the actual language.....they still do the same job...No less lowlevelOriginally posted by Flikm
[B]well, C is a bit more lower level than C++ is. in C, you need to allocate memory manually, but in C++, you have the magical new and delete operators.
Again I would say this depends on the compiler.......Originally posted by Flikm
classes getting translated to asm is not the easiest process either. polymorphism, inheritance, and other OOP things tend to become slower than C programs (and larger).
hmm i posted this topic somewhere else to get people's replies, and someone posted me this. Its apparently an interview with the creator of c++. What do you guys think? http://www.program.com/humor/bjarne.html
i didnt believe it myself but i am not sure.
Wow, I'm off to learn D (or maybe VB).
take note it has the word "humor" in the url. But i am not entirely sure if its bogus or not. Anyone like to prove/disprove?
Unfortunately it's a hoax. I wonder if my local bookstore will take back all this VB stuff I've just gone an bought?
Sorry.