3 ms·
See this real-world assembler for example https://github.com/oracle/graal/tree/master/compiler/src/org.graalvm.compiler.asm.amd64/src/org/graalvm/compiler/asm/
by chrisseaton 7y ago
See this real-world assembler for example
https://github.com/oracle/graal/tree/master/compiler/src/org.graalvm.compiler.asm.amd64/src/org/graalvm/compiler/asm/amd64 https://github.com/oracle/graal/tree/master/compiler/src/org...
Then take a random instruction
https://github.com/oracle/graal/blob/master/compiler/src/org.graalvm.compiler.asm.amd64/src/org/graalvm/compiler/asm/amd64/AMD64Assembler.java#L1988 https://github.com/oracle/graal/blob/master/compiler/src/org...
See how it has common methods used by other instructions simdPrefix and emitModRM? Those are the abstractions.