Flowcode is often used by C programmers as a method of managing their code and allowing less experienced team members to take advantage of more complex C or Assembly code routines. If you have blocks of C or Assembly code that contain routines, definitions, lookup tables, etc. that you need to call later in the program then you should use this feature. This is an advanced feature that requires an understanding of C or Assembly language.
Definitions and function declarations
The first section, Definitions and function declarations, is added at the beginning of the C Code to allow users to add in defines, includes, function declarations and any other initialization code needed. This section is placed at the beginning of the generated C file to allow the code to be visible to all parts of the program.
The second section, Function implementations, allows for the addition of the main function code.
The code is split into these two sections to allow every Flowcode macro to use any of the supplementary functions defined, and to allow these supplementary functions to use any user or component macros that exist in the Flowcode program. It also ensures that supplementary functions can call other supplementary functions.
Warning: If Flowcode fails to compile you may need to examine the supplementary code for errors.
Note also that Flowcode does not simulate C Code, so programs that make use of supplementary code may not simulate correctly.