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
21
u/GoblinsGym Oct 13 '26
Assembly code would be an extra step. No need to use a text representation, normally a compiler will just generate binary code directly.