I'm pondering an idea of accessing Unity3d's native API and possibly creating a wrapper library for easy human usage. To do that I'm currently trying to figure out what exactly happens when Unity project is converted to XCode project during build with IL2CPP flag on.
I'd like to know what is the exact process that goes on when IL2CPP translates IL to c++, why does the project still has DLL's included and is there anything special about the final compilation process e.g. where does the magic happen?
Any insights and opinions regarding the feasibility of described goal (Unity3d c++ API) are welcome.
PS: I understand that such an API would be hackish to say the least and yes, I do understand, that there are other technologies apart from Unity3d, that allow c++ usage as first-class citizen, namely Unreal Engine. This question is first and foremost theoretical in nature. That, and I also like c++ :)