Unknown pseudo-op vle

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

Unknown pseudo-op vle

1,328件の閲覧回数
RicardoI
Contributor I

I am trying to change Green Hills compiler to NXP GCC crosscompile for Power Architecture. The project based on MPC5674F (e200z7 core). But I found below error.

Error:

Assembler messages:
Error: unknown pseudo-op: `.vle'

 

Ubuntu 16.04.7 LTS

S32 Design Studio for Power Architecture

Version: 2.1
Build id: 190624

 

0 件の賞賛
3 返答(返信)

1,309件の閲覧回数
stanish
NXP Employee
NXP Employee

Hi Ricardol

There is no code portability ensured when it comes to assembleer keywords. Therefore you should manually adjust asembler keywords, compiler pragmas etc. when migrating the project from/to GHS.

 e.g. .vle could be removed since there is no counterpart keyword in gcc. All you need to do is to add keyword  .section .name to place the code into VLE section (replace .name with valid VLE section name - see linker file) and make sure the assembler command line option -mvle is pressent.

Hope it helps.

Stan

0 件の賞賛

1,306件の閲覧回数
RicardoI
Contributor I

Thank you for your help. Also are the bellow instruction green hills sintax?

 

unknown pseudo-op: `.need'

0 件の賞賛

931件の閲覧回数
stanish
NXP Employee
NXP Employee

Ricardo,

.need in GHS defines function that shouldn't be optimized out by the linker even if it is not called.

I'm not aware of any equivalent keyword in GCC assembler.

Anyway you could possibly use the linker command file keyword KEEP().

e.g. assuming the function goes myFunc() into default .text section:

KEEP(*(.text.myFunc))

 

Hope it helps.

Stan

タグ(1)
0 件の賞賛