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

Different hex files from different compiler version

Hi,

I am compiling a source code (implemented by other team in Canada) using Keil (uvision-4) V4.02, C51 (9.01), to generate the hex and map(.m51) files.

When the same source code is compiled by the Canada team from Keil (uvision-4) V4.00a, C51 (9.00), differnt hex and map file output are observed as compared to mine output.

Infact I tried download the same compiler version C51 v 9.00 (as used by the Canada Team) to generate hex and map files, but still I am getting different hex files. Could anyone comment on why I am getting different hex and map files for the same source code compiled using the same compiler?

In short, my question is, is it normal to get different hex and map files while compiling from slightly different version of the compilers (C51 v9.00 Versus C51 v9.01)? If yes then how to get around with this problem?

Will appreciate the co-operation.

Regards
Asad

Parents
  • Yes, I agree that a single variable name change may change the output hex file.
    I am using 'BeyondCompare3' software to view the differences in the hex file. But when I want to see the difference in the source code files, I cannot find any difference.

    Situation seems strange but it is happening to me!

    Eric,
    What is this K&R? Could you please elaborate it (consider me a new bie)?

Reply
  • Yes, I agree that a single variable name change may change the output hex file.
    I am using 'BeyondCompare3' software to view the differences in the hex file. But when I want to see the difference in the source code files, I cannot find any difference.

    Situation seems strange but it is happening to me!

    Eric,
    What is this K&R? Could you please elaborate it (consider me a new bie)?

Children