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
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
Thank you for your help. Also are the bellow instruction green hills sintax?
unknown pseudo-op: `.need'
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