メインコンテンツ

Analyze Memory Usage of Compilers

Embedded Coder® Support Package for Infineon® AURIX™ TC3x Microcontrollers requires third-party compilers tool chains to develop single-core and multicore application models. You can specify the Toolchain parameter in the Configuration parameters dialog box.

To view the memory allocated for different program regions on Infineon AURIX microcontrollers during the compilation process using compiler-specific commands, follow these steps:

  1. Locate the executable and linkable format (ELF) file generated after building the Simulink® model.

  2. From the Windows Start menu, open a Command Prompt window.

  3. Navigate to bin folder in the compiler installation path. For example, for the TASKING® compiler, navigate to ...\TASKING\TriCore v6.3r1\ctc\bin.

  4. To view the total memory usage by the compiler. run the command for your compiler, run the command for your compiler. The table lists supported third-party compiler toolchains, their installation paths, and the compiler-specific commands for analyzing memory usage. Replace model.elf file with the path to your generated ELF files.

    CompilerCommandCommand Full Path

    TASKING(R) VX-toolset for TriCore

    elfsize.exe [options] <model.elf file>…\TASKING\SmartCode v6.3r1\ctc\bin
    HighTec TriCore® Development Platformllvm-size.exe [options] <model.elf files>…\HighTec\toolchains\tricore\v4.9.4.1\bin>
    GCC for AURIX TriCore based on AURIX Development Studio tricore-elf-size.exe [options] [model.elf file(s)]…\tools\Compilers\tricore-gcc11\bin

    For instance, this image shows the Command Prompt window with the commands for the TASKING compiler.

    View compiler memory usage in Command Prompt

  5. You can also explore other available compiler options by adding the -h flag to the compiler-specific command. For instance, list additional options for the TASKING compiler.

    elfsize.exe -h

    View compiler memory usage options in Command Prompt

See Also

Topics