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: 
Contributor
Contributor
3,167 Views
Registered: ‎09-03-2007

Excluding non-used code by the linker

Hi All,

 

I am using MB with ISE12.4 and I have designed a custom IP and its driver. I noticed that the linker produces ELF file containing all functions in a file if I called any function in that file even if I am only using that function. I changed build settings to release but still all functions included in the output. Are there any option to instruct the compiler and linker to link ony used code and remove unused code? I need help ASAP please.

 

Regards,

M. Abdulghany

0 Kudos
2 Replies
Highlighted
3,133 Views
Registered: ‎02-25-2009

Re: Excluding non-used code by the linker

 
mb-gcc-optimization_2.jpg
0 Kudos
3,132 Views
Registered: ‎02-25-2009

Re: Excluding non-used code by the linker

 
mb-gcc-optimization_0.jpg
0 Kudos