So the solidity compiler compiles solidity first to YUL and then to machine code. Is it possible to compile it just to YUL and look it over?

It would be really helpful to learn how YUL works.



1 Answer 1


Yep, you can use the compiler option solc --ir a.sol to see the Yul output.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.