x64: a short illustration of encoding simple instructions

The output of gen predicted the output of gas. ie. gen illustrates how to construct the REX and MODRM bytes

the output of gen predicted output of gas. ie. gen illustrates how to construct the REX and MODRM

general parser for k

i wrapped up an earley parser, “yaep”, into a k .so here: http://www.ivorykite.com/ear/ear.tgz earley parsers are known for their tolerance of ambiguity (first match – like PEG) and of both left and right recursion. here’s the demo that ear.tgz includes:

64bit RPN compiler in q

Adapted from 64-bit reverse polish JIT compiler The call to execute the compiled expression is unimplemented as my personal edition of kdb+ is 32bit and don’t want to write the 32bit to long mode and back again hack. $ q r.q KDB+ 3.4 2016.06.14

reverse polish calculator in gcc

gcc makes it possible to code this RPN interpreter more compactly than C89..C11