This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Difference in hex file

Dear Team,

when we compile in keil on one of the system we are getting hex file as 30 KB(Programme application which is correct one) & in another system we are getting 32KB. why it is happening?

we have check target_options->C/C++ tab ->Optimization as Level(-O3) in both the system.

Best Regards

Kiran Padol

  • Are asking why do I get two functional compiled apps that are different sizes?

    If so, then that is very common. All versions of compilers work differently and even if you had two machines running the exact same version of IDE, unless all the support libraries are identical it is unlikely they would ever return the exact same code. The compiler serves to turn your high level code (eg, C) into low level object machine code. There is no one perfect method of turning your high-level code into machine code. Compilers are constantly modified by companies to improve the speed of the object code, reduce the size, reduce memory usage, etc.

    Or is the 32KB file not working and not just different?

Related