r/Compilers • u/SetKaung • Oct 13 '26
Do compilers necessarily need to generate assembly from IR before producing object code?
I am new to the world of compilers so pardon my ignorance. Is there a need for compilers to generate assembly or can they just skip and direcly produce object code from IR?
22
Upvotes
View all comments
Show parent comment
18
u/dacydergoth Oct 13 '26
Assembly output is often useful, even if compilers don't emit it as standard they almost all support that for debugging and other reasons