As it is mentioned in the comment the offset calculation is dependent on architecture: https://github.com/vvish/jitmc/blob/6aa088db875b5038725dcc03b2f1d5c9ebadb8dc/include/jitmc/core/code_block.hpp#L88 It should be performed by injected dependency.