17 Oct
2024
17 Oct
'24
12:26 a.m.
Update to include some additional observation from my end: Compiler optimization significantly affects the speed. Currently Tock's kernel uses "z" which is the slowest. On STM32F412G Discovery board @ 96 MHz, performing 10,000 ping-pong. When changing kernel compilation to use different optimization flags, the measured time and code size are shown below: O3: 6831 ms text data bss 151042 32 76320 O2: 6954ms text data bss 135682 32 76324 O1: 8528ms text data bss 139778 32 76352 Os: 8528ms text data bss 106498 32 76324 Oz: 10748ms text data bss 100866 32 76320