On 03/09/2015 22:38, Artella Coding wrote:
Is "Handle IntTaskData::EnterPolyCode()" in interpret.cpp ( https://github.com/polyml/polyml/blob/ce3107ba56c642bb0e1e8f60605018f9f46c49...) the point at which the sml main function is invoked from the C code? Thanks
It's the point at which the run-time system (RTS) switches to ML code but only if you happen to be using interpreted byte code. If you are running on any X86 machine (32 or 64-bit) you will almost certainly be running the native machine code version of the compiler and RTS and then the relevant function is X86AsmSwitchToPoly called from X86TaskData::EnterPolyCode. Even then there are some layers of ML code before your own "main" function is entered.
David