I would like to compile my contracts and to get an output with the opcodes in detail (not just assembly) but with references to the solidity source code at each line. This is the output one gets by default when using the Remix editor and cliking on "details", but I can't find a way to get that using the solc
binary: I get either assembly with comments using --asm
or opcodes without comments --opcodes
. Can I do that?
EDIT: to clarify, what I mean by assembly is something like
tag_11
/* "pot.sol":5259:5263 myid */
dup3
/* "pot.sol":5265:5271 result */
dup3
/* "pot.sol":5283:5284 0 */
0x0
/* "pot.sol":5273:5285 new bytes(0) */
and what I mean by opcodes is something like
SWAP1 contract Coucou{\n address ...
DIV contract Coucou{\n address ...
PUSH FFFFFFFF contract Coucou{\n address ...
AND contract Coucou{\n address ...
DUP1 contract Coucou{\n address ...
PUSH 26121FF0 contract Coucou{\n address ...