cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
5,453 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
Highlighted
Explorer
Explorer
5,442 Views
Registered: ‎03-31-2011

 

 

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

Highlighted
Observer
Observer
5,429 Views
Registered: ‎02-12-2012

thanks!

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

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

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

Highlighted
Visitor
Visitor
5,422 Views
Registered: ‎03-25-2012

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

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

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

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