I would like to compile a contract written in Solidity (or even just the part relating to a single method) to study it and understand if I can optimize it.
I already managed to get the bytecode as binary or in its assembly representation using
solc but I would prefer to keep the original source in the assembly like comments, line per line, similar to what happens with
Moreover, I can't understand if the
solc compiler uses the Yul language as intermediate representation between Solidity and assembly during the compilation, in case it did, how can I view this representation?