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?
23
Upvotes
View all comments
2
u/Pale_Height_1251 Oct 13 '26
No, and they typically don't unless you use the flag to do so.