I was before retiring in Basic software development as Windows Core
So I can tell you that the solution comes with generating an assembly code based on a run time implementing the AutoIt builtin functions
That need to defined something as as C compiler, that's a tremending job at least for me
Today Autoit is based on a interpreting byte code corresponding to AutoIt builtin functions which is not too bad from my point of view
Cheers