Hello SafeTI Support
In HALCoGen I set up the GIO registers and generate the code, the gio.c file produced contains 11 functions for manipulating the GIO registers.
If in my code I am only using say 3 of the functions is there a setting somewhere in the compiler/linker so as it only includes in the final executable only those functions that are actually used?
Or do I need to delete from the file the functions that I’m not using?
I do not want to have dead/unreachable code in my executable.
Alternatively is there a setting in HALCoGen to select the functions required or maybe create one file per function so they can be removed by the linker (e.g. by putting them in a Library).
Regards
Bob Bacon