1 min readJan 11, 2025

--

Hello mbed,

I can tell by your published works that you are familiar with C++. You will be glad to know that the code I have shown in this article can be compiled using C++ compilers such as clang++.

You can most certainly compare assembly to C, and in compiler design you have to do it all the time. Same with comparing assembly to Rust. In this article I broke out Ghidra and had to compare the outputted instructions of both a Rust binary and a C binary in assembly to see why there was a performance difference in certain cases.

Overall I feel you are trying to imply that C is too old to compare to Rust, because Rust is new it must be compared to newer languages like C++. This is simply not the case as Rust strives for C like performance. If you are implying age as a factor Rust is significantly younger than C++, so a better comparison would be C#, Swift, or Go, by that logic.

This is why I feel it is a tad unfair to call this a bad comparison.

But anyway thanks for Reading!

--

--

Responses (1)