Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Regular Visitor
laxerez
Posts: 28
Registered: ‎02-12-2012
0

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

Super Contributor
joy1887
Posts: 153
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

Regular Visitor
laxerez
Posts: 28
Registered: ‎02-12-2012
0

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?

Super Contributor
joy1887
Posts: 153
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
Posts: 5
Registered: ‎03-25-2012
0

Re: question about linker script file

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

Super Contributor
rourabpaul
Posts: 153
Registered: ‎08-13-2010
0

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).

Research Fellow
University of Calcutta, India
Contributor
schneemann79
Posts: 36
Registered: ‎05-02-2009
0

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