Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

PragmaEffect
#KiCoEnv {<json>}Configures the compiler environment.

#hostcode <code>

#hostcode-[c | c-header | java] <code>

Allows hostcode additions that are placed at the beginning of the generated code file. The exact handling may depend on the used code generator.

Status
subtletrue
colourGreen
titleNew in 1.1

There are also language specific variants that will only affect the specific code generation, e.g. #hostcode-java.

#code.naming

Status
subtletrue
colourGreen
titleNew in 1.1

Configures the code generation to use different names for generated functions.

#code.naming <TICK_FUNCTION_NAME>, <RESET_FUNCTION_NAME>, <LOGIC_FUNCTION_NAME>, <TICKDATA_STRUCT_NAME>
Sets the name for the four functions. All four parameters must be present.

#code.naming suffix
#code.naming prefix
Code generation will use default function names but will prefix/suffix these names with the model name.

#resource <file |  directory>

Status
subtletrue
colourGreen
titleNew in 1.1

#VisualizeImportedSCCharts

The given resources (single files or directories) will be copied to the generated code folder (usually kieler-gen). Since this is the working directory for the compilation KIELER these files can be included via hostcode integration.
If the compilation contains any down-stream compiler invocation (e.g. gcc) all given files and all files in given directories that match the usual source code file extension (e.g. *.c) will be included in the compilation and compile into an executable with the generated code.

All non-absolute paths will be resolved relative to the model file.

Code Block
languagesct
titleExample
#resource "myheader.h"
#resource "mycode.c"
#hostcode "#include \"myheader.h\""
scchart Testing {
  ...
}
#HideImportedSCCharts

Status
subtletrue
colourGreen
titleNew in 1.1

This will hide all SCCharts that are imported from other files in the diagram, if the 'All SCCharts' synthesis option is activated.