Application Configuration Tab > Generate User-Code in glob_func.c
Rational Statemate MicroC Code-Generator allows generation of user-code (Functions and Subroutines) code body in the module that the user-code is used in, instead of it being generated into
glob_func.c
.Start this mode using the check box “Generate User-Code in
glob_func.c
” in the Rational Statemate MicroC Code-Generator Property-Sheet.When the check-box is checked (the default setting), the tool generates the body code in
glob_func.c
.When the check box is not selected, the code is generated as follows:
●
As function - Body is generated in the
g_<Generic-Name>.c File.
●
Inline - Body is generated in
glob_func.c.
●
Before the section (and only if there is any Sub to generate), the definition of the API:
USER_FUNCTIONS_BODY_DEFINITION_SECTION_HEADER()
●
After the section (and only if there is any Sub to generate), the definition of the API:
USER_FUNCTIONS_BODY_DEFINITION_SECTION_FOOTER()