3 ms·
I haven't watched the video yet, but it's not that hard to do loop unrolling and inlining directly on the generated machine code. It's tricky (but by no means
by vidarh 18y ago
I haven't watched the video yet, but it's not that hard to do loop unrolling and inlining directly on the generated machine code.
It's tricky (but by no means impossible) to do this on arbitrary machine code, but in this case they control the code generator, so they can make guarantees about the structure, and if necessary they can keep track of information to make optimizing the machine code directly easier.