r/Compilers • • 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

25 comments sorted by

View all comments

1

u/SetKaung Oct 13 '26

Thanks a lot for the answers everyone. It is really insightful for a newbie.