cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
7,690 Views
Registered: ‎05-28-2014

dividing .text section

Hello,

 

diving text section is described in http://www.xilinx.com/support/answers/21639.html

 

But it handles some file1/2/3.o.text files.  

Does anyone knows how to create or divide such files in the SDK single project ? 

 

Thank you,

Ran

0 Kudos
10 Replies
Highlighted
Scholar
Scholar
7,676 Views
Registered: ‎09-05-2011

Look for object files in the Deb/Src folder of your application directory.
0 Kudos
Highlighted
Explorer
Explorer
7,667 Views
Registered: ‎05-28-2014

Hi sampatd,

Is there anywhere it is described in more details please ?
I don't understand what is ment in the above link.
in /dbg folder I find several files with .o and .d postfix. but the original .ld script search for .text file, not .o:
.text : {
*(.text)
*(.text.*)
*(.gnu.linkonce.t.*)
} > microblaze_i_bram_ctrl_0_microblaze_d_bram_ctrl_0

Can you please explain a bit more what should be done ?

Thank you very much,
Ran
0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
7,652 Views
Registered: ‎08-02-2007

Hi,

 

Refer to the snapshot to set -save-temps option in SDK. Once this is done, SDK generates the .o files of all the source files in Debug/src folder.

 

--Hem

 

 

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
Capture.PNG
0 Kudos
Highlighted
Scholar
Scholar
7,643 Views
Registered: ‎09-05-2011

If you have file1.o, file2.o, and file3.0 and assume that you have three memories DDR, BRAM, and LMBRAM then you can create two more text sections .text1 and .text2. Your linker script can look as below
.text : {
./src/file1.o
} > LMBRAM

.text1 : {
./src/file2.o
} > DDR

.text2: {
./src/file3.o
} > BRAM

The above code will make sure that the text sections of the different object files are placed in the memories defined.

You must make sure that you have the .text section - this is required by default

0 Kudos
Highlighted
Explorer
Explorer
7,642 Views
Registered: ‎05-28-2014

Hi Hem,

 

Thanks very much for the details.

I just tried to set optimize levele, but strangely it jumps back to no optimization. 

What does it mean ?

 

Thanks ,

Ran

0 Kudos
Highlighted
Scholar
Scholar
7,631 Views
Registered: ‎09-05-2011

If you are using SDK, then -save-temps switch is not required. SDK saves the object files automatically.
0 Kudos
Highlighted
Explorer
Explorer
7,626 Views
Registered: ‎05-28-2014

Thanks,

 

But Why I can't change optimize level ?

 

Regards,

 

Ran

0 Kudos
Highlighted
Explorer
Explorer
7,621 Views
Registered: ‎05-28-2014

Hi,

 

 

I try to divide the .o files but it keep saying that bram0 is larger even though there is no file inside (there is no aaaa* file!!) :

 


.text : {

} > microblaze_i_bram_ctrl_0_microblaze_d_bram_ctrl_0


.textXXX : {
CZ5C2010A_uBlaze_POD_Code/*.o
src/*.o
} > microblaze_i_bram_ctrl_0_microblaze_d_bram_ctrl_1

 

 

What am I doing wrong ?

 

Regards,

Ran

0 Kudos
Highlighted
Explorer
Explorer
7,529 Views
Registered: ‎05-28-2014

Can anyone please try to specify object files in .text sectoin ? 

Why doesn't it work ?

0 Kudos
Highlighted
Explorer
Explorer
4,208 Views
Registered: ‎05-28-2014

Can anyone help with this please ?

0 Kudos