Skip to content

Access to argc & argv #47

@tenko

Description

@tenko

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.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions