Re:An x86 Assembler in 256 LOC (2017)
by mises on Monday May 27, 2019 @08:03PM
(#20026148)
I might try doing this as a learning project. Can you offer any advice as to what those abstractions are? I'd appreciate some advice to avoid the "going back" part.
[ Parent
| on HN ]
Re:An x86 Assembler in 256 LOC (2017)
by chrisseaton on Monday May 27, 2019 @08:06PM
(#20026164)
See this real-world assembler for example
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...
See how it has common methods used by other instructions simdPrefix and emitModRM? Those are the abstractions.