As far as I can see it seems the only cross platform way to access argc & argv is to store these variables
in the main procedure. Right now the main procedure is without arguments. This would then need to
changed and argc, argc stored in external visible variables.
Alternative access from external visible functions in similar way to outline in #46. This way the argument
can be modified by the runtime for example when running on embedded MCU in semihosting mode.
Also in the JIT mode the original argv should be modified so that perhaps all arguments after -- from the
command line is propagated to the main function.
As far as I can see it seems the only cross platform way to access
argc&argvis to store these variablesin the
mainprocedure. Right now the main procedure is without arguments. This would then need tochanged and
argc,argcstored in external visible variables.Alternative access from external visible functions in similar way to outline in #46. This way the argument
can be modified by the runtime for example when running on embedded MCU in semihosting mode.
Also in the JIT mode the original
argvshould be modified so that perhaps all arguments after--from thecommand line is propagated to the
mainfunction.