prog-to-x86 compile function