Different binary generated on windows and linux

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Different binary generated on windows and linux

694 次查看
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 项奖励
回复
1 回复

685 次查看
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 项奖励
回复