Native code preparation