3 ms·
I think I have enough practice. I find assembly very readable on small scale. But when I need to write larger pieces of vectorized code, higher-level C++ constr
by Const-me 8y ago
I think I have enough practice. I find assembly very readable on small scale. But when I need to write larger pieces of vectorized code, higher-level C++ constructs help a lot with readability, following reasons.
Local variables and function arguments are named, as opposed to xmm/ymm register numbers.
I can use (forcefully inlined) C++ functions to compose code from smaller pieces. In some cases, even OOP.
Even in vectorized code there’re pieces running on scalar blocks of cores: loops, addresses calculations, conditions. With assembly you have to use it for the whole things.