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

Every Time Diffrent MAP File generated in keil build

Dear All,

I am using keil sdk v3.22.

What behavior I noticed is, when i use
"rebuild all" or "build" option ,

Map file is generated.

Next time, Even if I am not changing Any line of code,

I am rebuilding target second time(using "rebuild all" or
"build" option), the map file that is being generated is bit diff,

If you put both the map files under WINDIFF software you
can see the differences. Major visible diff is in code size and

Data size variation of these version of map file of the single
code. My concern is just with reliability. Is it normal behavior
or some thing not happen correct to my sdk.

Also, one more thing I have noticed that is if one make use of
"clean target" option before "rebuild all" , then the generation of
MAP file is even.

What might be the conclusion and right way to use your compiler ?

Can you pls guide...

-Saurabh

Parents Reply Children
  • Thanks all,

    I also noticed that largest
    build works 100%, rest not relible due
    to some memory optimization techniques
    or some thing else. But I tried the option

    - > clean target - > rebuild all (with optimization level=1)
    works fine all time..

  • If the compiler is correctly implemented, the optimization level must not be allowed to influence the behavior of you program (let be charitable and say: the "output"). I think that there is something in your program that makes certain assumptions that become invalid due to optimization. Are you getting any warnings during your build? Do you use inline assembly?