How to define multiple variables together to a specified address

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to define multiple variables together to a specified address

1,978 Views
HarryLe
Contributor I

use   __attribute__((section(".xxxxxx")))  is ok

But it only works on one variable.

There are now thousands of variables  need to be addressed,How to define multiple variables together to a specified address

 

0 Kudos
Reply
1 Reply

1,862 Views
stanish
NXP Employee
NXP Employee

Hi HarryLe,

I assume you are referning to S32 Design Studio for S32 Platform

NXP GCC for Arm Release based on gcc 6.3/9.2.0/10.2  supports:

#pragma GCC section (text|data|bss|rodata) ".name" pragma.

This pragma allows to redefine standard sections by user defined section

#pragma GCC section (text|data|bss|rodata) "default"

This pragma restores standard section

All the declaraions/code or data/const inbetween the pragmas will be placed to ".name" section.

 

For more information please see the NXP GCC compiler e.g. releasenotes.pdf (attched) ("C:\NXP\S32DS.3.5\S32DS\build_tools\gcc_v9.2\gcc-9.2-arm32-eabi\releasenotes.pdf")

 

Hope it helps.

Stan

 

 

0 Kudos
Reply