UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
7,652 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
Scholar sampatd
Scholar
7,638 Views
Registered: ‎09-05-2011

Re: dividing .text section

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

Re: dividing .text section

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
Xilinx Employee
Xilinx Employee
7,614 Views
Registered: ‎08-02-2007

Re: dividing .text section

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
Scholar sampatd
Scholar
7,605 Views
Registered: ‎09-05-2011

Re: dividing .text section

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
Explorer
Explorer
7,604 Views
Registered: ‎05-28-2014

Re: dividing .text section

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
Scholar sampatd
Scholar
7,593 Views
Registered: ‎09-05-2011

Re: dividing .text section

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

Re: dividing .text section

Thanks,

 

But Why I can't change optimize level ?

 

Regards,

 

Ran

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

Re: dividing .text section

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
Explorer
Explorer
7,491 Views
Registered: ‎05-28-2014

Re: dividing .text section

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

Why doesn't it work ?

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

Re: dividing .text section

Can anyone help with this please ?

0 Kudos