Code generator fixups

- fixed a crash in Instruction::print
- new example program
- added a design note about the number of x86 instruction per VM instruction
This commit is contained in:
tevador
2019-06-23 23:10:29 +02:00
parent 77f809e8db
commit e6ba0a1b7d
4 changed files with 956 additions and 953 deletions

View File

@@ -54,7 +54,7 @@ void generateAsm(uint32_t nonce) {
fillAes1Rx4<softAes>((void*)hash, randomx::ScratchpadSize, scratchpad);
randomx::AssemblyGeneratorX86 asmX86;
randomx::Program p;
fillAes1Rx4<softAes>(hash, sizeof(p), &p);
fillAes4Rx4<softAes>(hash, sizeof(p), &p);
asmX86.generateProgram(p);
asmX86.printCode(std::cout);
}