aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 945b53db..1cf466c7 100644
--- a/main.cpp
+++ b/main.cpp
@@ -115,9 +115,11 @@ int main(int argc, char** argv)
printer.print(cout);
bytes instructions;
+ Compiler compiler;
try
{
- instructions = Compiler::compile(*ast);
+ compiler.compileContract(*ast);
+ instructions = compiler.getAssembledBytecode();
}
catch (CompilerError const& exception)
{
@@ -125,7 +127,9 @@ int main(int argc, char** argv)
return -1;
}
- cout << "EVM assembly: " << endl;
+ cout << "EVM assembly:" << endl;
+ compiler.streamAssembly(cout);
+ cout << "Opcodes:" << endl;
cout << eth::disassemble(instructions) << endl;
cout << "Binary: " << toHex(instructions) << endl;