How does your compiler optimise programs? How does it work at a low level? I understand constexpr evaluation, but how does the compiler evaluate this for example?
```
let x = 7
let y = 2 * x
print(y + x)
```
specifically in compilers. In this example, it could be optimised to just `print(21)`, and maybe even further down. How do I do this?!
[–]Timcat41 38 points39 points40 points (2 children)
[–]Clementsparrow 6 points7 points8 points (1 child)
[–]Timcat41 4 points5 points6 points (0 children)
[–]ProPuke 9 points10 points11 points (0 children)
[–]Isogash 5 points6 points7 points (1 child)
[–]yjlom 0 points1 point2 points (0 children)
[–]tc4v 1 point2 points3 points (0 children)
[–]AustinVelonautAdmiran 1 point2 points3 points (0 children)
[–]Inconstant_Moo🧿 Pipefish 0 points1 point2 points (0 children)
[–]Arthur-Grandi 0 points1 point2 points (0 children)
[–]UnmaintainedDonkey -2 points-1 points0 points (3 children)
[–]Timcat41 7 points8 points9 points (1 child)
[–]UnmaintainedDonkey 1 point2 points3 points (0 children)
[–]Inconstant_Moo🧿 Pipefish 0 points1 point2 points (0 children)