This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Compare code size keil and segger

I read about Segger studio (on their website) that it reduces the code size. I try to check it out Here's my opposite result I've compiled the same app (e.g uart_example) in different IDE: keil and segger. the result for Keil:

image description

image description

for Segger:

image description image description

Parents
  • Hi, Code size is dependent on various factors. For a useful comparison for your project make sure that you use the same / similar compiler options, such as optimization level. We would also recommend to compare the size of the actual release build, since with debugging enabled the code will be less optimized in most cases. For a generally useful / fair comparison one should also use various different target applications. Optimization is always highly dependent on the code. In some cases Keil or IAR will produce faster or smaller code, but there are also cases where GCC or clang outperform the commercial toolchains. (Where did you read that Embedded Studio reduces code size? I do not think we do stat this on our website)

Reply
  • Hi, Code size is dependent on various factors. For a useful comparison for your project make sure that you use the same / similar compiler options, such as optimization level. We would also recommend to compare the size of the actual release build, since with debugging enabled the code will be less optimized in most cases. For a generally useful / fair comparison one should also use various different target applications. Optimization is always highly dependent on the code. In some cases Keil or IAR will produce faster or smaller code, but there are also cases where GCC or clang outperform the commercial toolchains. (Where did you read that Embedded Studio reduces code size? I do not think we do stat this on our website)

Children
No Data
Related