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

Keil3 vs Keil compiler,Linker differnces

Hello All,

I have compiled legacy code in Keil 3 and generated lst,map,hex files.When the same legacy code is compiled in Keil5 I am able to see difference in code size const size etc in lst ,map,hex files while using LX51 Linker.

Could you please let us know what causes this differences in hex ,map, lst files apart from the compiler/Linker change?

Regards,
Neil

Parents
  • If it's a different version of the compiler and linker (as it is bound to be between such different software release numbers), then it is only to be expected that the compiler and linker in those different versions would produce different executable code. It is not uncommon for compiler writers (such as Keil) to include fixes and enhancements in their code that in turn produces better executable code as a result.

    If you want to maintain 100% identical code (as is the case for us), then you must ensure that exactly the same development environment is used.

Reply
  • If it's a different version of the compiler and linker (as it is bound to be between such different software release numbers), then it is only to be expected that the compiler and linker in those different versions would produce different executable code. It is not uncommon for compiler writers (such as Keil) to include fixes and enhancements in their code that in turn produces better executable code as a result.

    If you want to maintain 100% identical code (as is the case for us), then you must ensure that exactly the same development environment is used.

Children