Unknown pseudo-op vle

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

Unknown pseudo-op vle

3,037 次查看
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 回复数

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

3,015 次查看
RicardoI
Contributor I

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

 

unknown pseudo-op: `.need'

0 项奖励
回复

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