diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-30 07:12:38 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-06-09 22:40:14 +0800 |
commit | 762bec9116d74a1022e4d06bd7112e4758a64b10 (patch) | |
tree | 8478c703928e326e8b80a6116b7f9539d5036d65 /solc | |
parent | ca92bda886740f7c59aaf44aaa8a15e25136c9dc (diff) | |
download | dexon-solidity-762bec9116d74a1022e4d06bd7112e4758a64b10.tar dexon-solidity-762bec9116d74a1022e4d06bd7112e4758a64b10.tar.gz dexon-solidity-762bec9116d74a1022e4d06bd7112e4758a64b10.tar.bz2 dexon-solidity-762bec9116d74a1022e4d06bd7112e4758a64b10.tar.lz dexon-solidity-762bec9116d74a1022e4d06bd7112e4758a64b10.tar.xz dexon-solidity-762bec9116d74a1022e4d06bd7112e4758a64b10.tar.zst dexon-solidity-762bec9116d74a1022e4d06bd7112e4758a64b10.zip |
Nicer machine output in CLI
Diffstat (limited to 'solc')
-rw-r--r-- | solc/CommandLineInterface.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/solc/CommandLineInterface.cpp b/solc/CommandLineInterface.cpp index 7509d1f2..a79f1633 100644 --- a/solc/CommandLineInterface.cpp +++ b/solc/CommandLineInterface.cpp @@ -1082,6 +1082,10 @@ bool CommandLineInterface::assemble( "eWasm"; cout << endl << "======= " << src.first << " (" << machine << ") =======" << endl; AssemblyStack& stack = assemblyStacks[src.first]; + + cout << endl << "Pretty printed source:" << endl; + cout << stack.print() << endl; + MachineAssemblyObject object; try { @@ -1097,15 +1101,18 @@ bool CommandLineInterface::assemble( cerr << "Unknown exception while assembling." << endl; return false; } + + cout << endl << "Binary representation:" << endl; if (object.bytecode) cout << object.bytecode->toHex() << endl; else cerr << "No binary representation found." << endl; + + cout << endl << "Text representation:" << endl; if (!object.assembly.empty()) cout << object.assembly << endl; else cerr << "No text representation found." << endl; - cout << stack.print() << endl; } return true; |