Native codegen (WIP)