On 2020-05-22 2:40 PM, John Gilmore wrote:
Tyler Adams <coppero1237(a)gmail.com> wrote:
Doesn't C++ also generate tight code and is
fairly close to the metal?
Today C++ is the high performant language for game developers and HFT shops.
But, I never found it on any of these embedded systems, it was straight C.
My take on this is that programmers who understand the underlying
hardware architecture can easily intuit the code that would result from
what they write in C. There are only a few late features (e.g. struct
A short time playing with Godbolt should challenge that view :)
https://godbolt.org/
parameters, longjmp) that require complex code to be
generated, or
function calls to occur where no function call was written by the
programmer.
Whereas ...
John