Encryption > Supercomponent encryption
Supercomponent library compilation
Compilation can be applied to submodels provided with C source code. If the source code is missing, the risk of hacking is lower since the third party user will probably not have this source code.
Note
Submodels written in Fortran are not embedded.
The result of this compilation is a C library specific to the supercomponent, stored in a compiler-dependent directory.
You can specify some additional options for the compiler when compiling a supercomponent. This is especially necessary in case of submodels including external header files, since the paths to directories containing these header files must be explicitly specified to the compiler.
The environment variable AME_CFLAGS is the variable that contains these compilation options. It can be set with include instructions consisting of an "-I" marker followed by a path to a directory storing include files.
Under Windows, the setting of the AME_CFLAGS variable is done in the Environment Variables dialog, as shown in the following figure.
Figure 67: Environment variables dialog box
Under Linux, this can be done in a terminal window before starting Component Customization: export AME_CFLAGS=-I/software/include_dir1 -I/software/include_dir2
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.AMECustom/Supercomponent_library_compilation · retrieved 2026-07-17