Is it true that C++ has the highest program performing speed? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is it true that C++ has the highest program performing speed?

4th Oct 2017, 5:59 AM
Isair Calhawk
Isair Calhawk - avatar
4 Answers
+ 4
High performing yes, but not the highest. Hand written assembly by someone who knows what they are doing can outperform a C++ compiler. Compilers are smart, but they often have to make assumptions on how code is going to be used
4th Oct 2017, 6:55 AM
aklex
aklex - avatar
+ 3
Assembly is the native language that represents exactly what the CPU (or sometimes the GPU) executes in a human readable form. For most modern desktops it's x86 or x64 Assembly. Hand written just means you write all the assembly yourself with no compilers for higher level languages involved.
4th Oct 2017, 7:59 AM
aklex
aklex - avatar
+ 1
So C++ has a high performing speed but is slower then Hand written assembly. But what is Hand written assembly??
4th Oct 2017, 7:06 AM
Isair Calhawk
Isair Calhawk - avatar
+ 1
#1 Fortran (4ever :D ) #2 plain C #3 C++ .... optional with inline assembly
7th Oct 2017, 8:10 PM
---
--- - avatar