This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Code size variation in compiler 5 versions

Hi,

When compiling my code in Keil5, I get different code sizes when using compiler V5.03 and V5.06.

Using V5.03 - default compiler used in Keil4- my code size is:  Total RW  Size (RW Data + ZI Data)             30240 (  29.53kB)

Using V5.06 - default compiler used in Keil5- my code size is: Total RW  Size (RW Data + ZI Data)             49096 (  47.95kB)

A difference of 18.42KB. My target device is TM4C123FH6PM, and is has only 32KB of RAM, so this difference is huge!

With both compilers no optimization was used (level 0).

Why is the code size that different with the different compilers?

TIA,

Parents
  • That does seem a bit large but I have noticed that as the C language goes through recent changes the code size definitely increases.

    Desktop developers I guess seem to want more C features or protections so that affects us embedded developers in adverse ways! C was very stable for quite a long while, now it seems to be changing (too) often.

Reply
  • That does seem a bit large but I have noticed that as the C language goes through recent changes the code size definitely increases.

    Desktop developers I guess seem to want more C features or protections so that affects us embedded developers in adverse ways! C was very stable for quite a long while, now it seems to be changing (too) often.

Children
No data