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: 
Observer laxerez
Observer
5,382 Views
Registered: ‎02-12-2012

question about linker script file

hello everybody!

 

I have a two questions:

 

1) What are the three sections '.init' , '.text' , '.fini' in the linker script? what are the differences between them?

2) How can I know how match place needed for my code in order to avoid overlapping?

 

 

thanks a lot

0 Kudos
6 Replies
Explorer
Explorer
5,371 Views
Registered: ‎03-31-2011

Re: question about linker script file

 

 

The linker script controls the placement of the object code, data, stack, and heap in specific memory locations. Do u know what is an object file? it is an assembled piece of code ie in machine language.There few sections on it like .data (read wrte data section),.text (text section) etc

 

supoose u write

 

int data[10] = {0,1,2,3,4,5,6,7,8,9};...................this is .data /* DATA */

.

,

'

I = I + 10; /* TEXT */

 

like this... similarly

 

.init is Language initialization code & .fini is Language cleanup code

 

 

 

 

To know ur program size do,

  1. Select Software > Get Program Size. The Choose a Software Application dialog box opens.
  2. Select the project for which you want to view the program size.
  3. Click OK.

regards

JOY

Observer laxerez
Observer
5,358 Views
Registered: ‎02-12-2012

Re: question about linker script file

thanks!

 just one thing more - I don't have a tab 'software', so how can I know the suze of the code?

0 Kudos
Explorer
Explorer
5,354 Views
Registered: ‎03-31-2011

Re: question about linker script file

Software tab  must be in ur EDK software,which version u r using?

 

I am using EDK 11.1 and it is in it

edk 11.1.png

Visitor risco
Visitor
5,351 Views
Registered: ‎03-25-2012

Re: question about linker script file

I'm using EDK 13.2 and I don't have this tab

0 Kudos
Explorer
Explorer
5,302 Views
Registered: ‎08-13-2010

Re: question about linker script file

just click on build project, you can get the program size at console window(if you have sufficient memory for your design).
0 Kudos
Participant schneemann79
Participant
5,288 Views
Registered: ‎05-02-2009

Re: question about linker script file

since 13.1 or 13.2 all software development tools and actions have been removed from EDK and are only accessible from SDK any more
0 Kudos