4 ms·
> It's easy to understand what normal code is doing and how is that translating to instructions (more or less) compared to, say, C++. I don't think it is meani
by MauranKilom 5y ago
> It's easy to understand what normal code is doing and how is that translating to instructions (more or less) compared to, say, C++.
I don't think it is meaningfully harder to understand translation into assembly between C and C++. Sure, you'll have to learn what a vtable is, and possibly think about exceptions, but if you have debugged some C++ assembly a few times, there shouldn't be anything surprising in there.
Yes, destructors and overloaded operators make the "what is the code doing" part harder to figure out from plain text, but that makes no difference for the emitted instructions (compared to an explicit function call in C). The degree of "magic" in terms of assembly depends more on how good your compiler is at optimizing than whether you use C or C++.