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

Three compilation times, three different code size, no source code change

Hello,

I'm using keil 3.4, optimization O3, cross module optimization.

I deleted all the objects files, listings... before compiling.

The first time I build the project, the code size is more than 11KB.

The second time ~7.7 KB.

The third time ~7.5

After that, it didn't change anymore.

No change was made between those builds. I just clicked the build button 3 times and it gave me 3 different code size.

I suppose it related to the using of cross-module optimization; but it's really strange.

Any clue?

Thanks,