Metric: Application Size (Code+Data)

User Description

When logged into a controller, the source code is compiled (incl. Generate Code) and an executable is sent to the controller.

The executable consists of code and data sections when loaded into controller memory.

The application code and data size is the minimum amount of memory needed on the controller to run the application.

NOTE: This metric can only be calculated when you activate the Consider Code and Data Size option in the code analyzer Configuration tab. Refer to EcoStruxure Machine Expert Code Analysis User Guide\Code Analysis Manager\Configuration.

Metric Calculation

The application code size is calculated based on the size of generated machine code for each POU (program, function block, function).

The application data size is calculated based on the size of the variables in the application.

NOTE: The sum of application code size and application data size (see dedicated metric) is not exactly the application code size + data size (this metric) due to alignment or code page size of the underlaying controller hardware.