8.4. Arguments to main¶
Some programs expect arguments to main (argc, argv) to be valid. Normally this isn’t possible for an embedded program, but the TI runtime does provide a way to do it. The user must allocate an .args section of an appropriate size using the --args linker option. It is the responsibility of the loader to populate the .args section. It is not specified how the loader determines which arguments to pass to the target. The format of the arguments is the same as an array of pointers to char on the target.
See Allocate Memory for Use by the Loader to Pass Arguments (--arg_size Option) for information about allocating memory for argument passing.