Sample code (note the
Will be using the canary SDK here, so set
Run the compiler to produce optimized bitcode:
Note: this is LLVM bitcode:
We'll keep it in LLVM bitcode format, because the NaCl bitcode writer/reader can't handle some of the types removed by stripping. So fully finalizing (into a stable pexe) a non-stripped file doesn't currently work.
Finally, translate that into a .nexe in -O0 mode, asking