AN720
6.3. Toolchain Library Usage
Some toolchains have multiple libraries or settings that can change the size or execution speed of code.
The Keil µVision tools have two options: standard and MicroLIB. To switch between the two:
1. Right-click on the project_name in the Project window and select Options for Target ‘project_name’ or
go to ProjectOptions for Target ‘project_name’.
2. Select the Target tab.
3. Use the Use MicroLIB checkbox to select the library.
Figure 10 shows this dialog in the µVision IDE.
Figure 10. Using the µVision IDE to Select the Project Library
Using the sim3u1xx_Blinky and demo_si32UsbAudio default examples in the si32HAL 1.0.1 software package,
Table 15 and Table 16 show the relative Debug build sizes with the different toolchain library options. Table 17
shows the Debug build sizes for CoreMark, and Table 18 shows the relative CoreMark speed scores for each of
these library options.
Table 15. Keil Toolchain Library Usage Comparison—sim3u1xx_Blinky Debug
Library
µVision standard
µVision MicroLIB
Code (bytes)
2296
2068
Read Only Data
(bytes)
312
296
Read-Write Data
(bytes)
24
24
Zero-Initialized
Data (bytes)
1632
1536
Rev. 0.1
19