cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
3,667 Views
Registered: ‎07-20-2010

custom data and program sections

Jump to solution

Hi,

I am working with SDK with Kintex7 MiniModule plus reference design. In this design all sections are placed on DDR2 memory. I need to have some functions and data placed in internal BRAM memory instead DDR2 memory, to speed up performance. I know how specify new sections in *.ld script file, for example "mytext" and "mybss" are two new sections. I don't know how tell that a variable must be linked in "mybss" sections and a function must run in "mytext" section.  Are there any pragma for gnu linker?

Best Regards,

Begos

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Adventurer
Adventurer
4,617 Views
Registered: ‎07-20-2010

Re: custom data and program sections

Jump to solution

Hi,

I think that I can use, for example, this directive:

void example_func(void) __attribute__((section("my_section")));

Does anyone know if is it right?

begos

View solution in original post

0 Kudos
3 Replies
Highlighted
Anonymous
Not applicable
3,660 Views

Re: custom data and program sections

Jump to solution
0 Kudos
Highlighted
Adventurer
Adventurer
3,646 Views
Registered: ‎07-20-2010

Re: custom data and program sections

Jump to solution

Hi,

yes, I know this document. This document explain how modify linker script file to specify new custom sections, but I need the further step, that is  to know what are the directive or pragma to tell to the linker that a specific portion of code or data must be linked in a desired custom section. I know how do this with other toolchain (code composer studio, raisonance ,  keil, iar...) but I don't know how in SDK.

Thanks,

begos

 

0 Kudos
Highlighted
Adventurer
Adventurer
4,618 Views
Registered: ‎07-20-2010

Re: custom data and program sections

Jump to solution

Hi,

I think that I can use, for example, this directive:

void example_func(void) __attribute__((section("my_section")));

Does anyone know if is it right?

begos

View solution in original post

0 Kudos