Different binary generated on windows and linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Different binary generated on windows and linux

590 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rkleger on Tue Jan 18 03:25:42 MST 2011
Hello,

According to the ReleaseNotes, windows 3.6.1 and and linux 3.8.1 versions are equivalent. Yet they generate different code, see clean build of "blinky":

Linux, v3.8.1
  text       data        bss        dec        hex    filename
   2180          4          8       2192        890    LPCXpresso1114_blinky.axf

Windows, v3.6.1
  text       data        bss        dec        hex    filename
   3028        520         16       3564        dec    LPCXpresso1114_blinky.axf

Quick investigation shows that the alignment of code in object files is different.

Is it expected bahavior?

Best Regards,
Rafal
0 Kudos
Reply
1 Reply

581 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Tue Jan 18 03:42:45 MST 2011
Although the IDE for Linux and Windows are the same, the Linux version of the tools uses a later version of the compiler and the Redlib C library. This is why the version number is different between Windows and Linux and is why different binaries are to be expected.

There is more information on the version of Redlib in the Linux tools in the FAQ

  http://support.code-red-tech.com/CodeRedWiki/redlib_v2_notes

We are working at bringing the two versions into line in a forthcoming new version of the tools. However I can't make any comment at present as to when this will be released.

Regards,
CodeRedSupport.
0 Kudos
Reply