Dive into Assembly Optimisation for Multiplication
Posted on Sat 16 October 2021 in Post • Tagged with Assembly, Hardware
This is a bit of research into how multiplying a variable and a constant integer is compiled into assembly x86 instructions. We will look at how the instruction set changes as the constant integer changes.
Setup and Scripts
We start with a mulk.c file which contains a function that …
Continue reading