1. A method comprising: calculating argument offset to pass arguments from managed code to unmanaged code; generating marshalling language code; setting the generated marshalling language code into assembly; loading a native library and a data link library entry point; creating a native stub; and executing the native stub.