about little endian/ big endian

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

about little endian/ big endian

2,825件の閲覧回数
Serma
Contributor I

Hello,

I have a technical problem. When I compile my project with the software IAR Embedded Workbench I have this error :

"This file should only be compiled in big endian mode" because of the variable __LITTLE_ENDIAN__ == 1 and I go in the loop (file arm7100.h) :

#if __LITTLE_ENDIAN__ == 1
#error This file should only be compiled in big endian mode
#endif

So my question is : Is it possible to change an option in this software for compiling in big endian mode ?

Thank you for your answers.

ラベル(1)
0 件の賞賛
返信
1 返信

1,478件の閲覧回数
ajacks504
Contributor I
The tool should automatically select endianness for you depending on the target, you may have better luck going through IAR support.  Have you seen this article?

Your ARM should be big endian, have you inadvertantly linked to some other libraries that are little endian specific?  Look at the flies that were linked BEFORE arm7100.h

Good luck!
0 件の賞賛
返信