Linking individual functions from elib

Any technical questions about the Epiphany chip and Parallella HW Platform.

Moderator: aolofsson

Linking individual functions from elib

Postby MartinL » Mon Nov 11, 2013 3:08 pm

Hi.

I encountered an unwanted effect when using e_irq_enable() from the e_ic.h.
The binary included EVERY one of the interrupt service functions in my code.
Is there some way to include only the used functions, from a pre-built library?
I am using toolchain version 4.7.0.

Thank you for guidance, and I am happy to provide you with additional info, if needed.
MartinL
 
Posts: 2
Joined: Fri Jun 28, 2013 12:07 pm

Re: Linking individual functions from elib

Postby ysapir » Tue Nov 12, 2013 1:54 am

What version of eSDK are you using? Looks like you are using an old revision (4.xx)? Try updating your installed release. The e_irq_enable() is not supported in esdk 5.xx.
User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm

Re: Linking individual functions from elib

Postby MartinL » Tue Nov 12, 2013 1:21 pm

Ok, I don't know if we really ought to update, we're working with an Altera/Bittware
kit (the EMEK?), arriving with a pre-installed ubuntu-pc and all. But can it be that the
newer eSDK packages have the ability of including individual functions from a lib,
whereas the older (4.X) does not?

(Hopefully we'll soon receive our own parallella, and we'll be sure to keep ourselves
updated then...)
MartinL
 
Posts: 2
Joined: Fri Jun 28, 2013 12:07 pm

Re: Linking individual functions from elib

Postby ysapir » Wed Nov 13, 2013 1:39 am

The new eSDK definitely packs only the linked-to functions. I believe that eSDK 4.xx did as well.

However, you can use some e-gcc (or e-ld) command options to strip out unused symbols and objects from your executable (don't remember the exact option right now, you can run a search online).
User avatar
ysapir
 
Posts: 393
Joined: Tue Dec 11, 2012 7:05 pm

Re: Linking individual functions from elib

Postby mhonman » Wed Nov 13, 2013 8:05 am

MartinL, Could you post your compiler and linker command lines?
mhonman
 
Posts: 112
Joined: Thu Apr 25, 2013 2:22 pm


Return to Epiphany and Parallella Q & A

Who is online

Users browsing this forum: No registered users and 0 guests