A c++20 constexpr x86 assembler
- Learning x86 assembly encoding in a practical and fun way
- Having an easy framework to generate assembly instruction at compile time
See examples folder.
- Add it to the instruction db file (to the
instdb,prefix_dbandprefix_0fdbarrays) - Code the encoder in
encoder.hppor add it to an existing encoder if applicable. - Add a test file =)
No extension set is currently being supported, only a subset of x86 instructions is currently being implemented. SIB (Scale Index Base) byte is not fully implemented yet
Clone the repository and build using CMake. Only tested with clang tool chain, O2 optimization is only necessary if you want to use the inline emitter core::emit()
- Continue implementing Mod/RM encoding and related helper functions (ie:
dword_ptr(operand, disp)) - Implement SIB
- Godbolt for prototyping
- Intel x86-64 manual
- Defuse.ca for verifying outputs
- Geek ABC reference
- People who answered my questions about c++20
See changelog