This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linux applications using RVDS

Note: This was originally posted on 28th July 2010 at http://forums.arm.com

hi

I  cross compiled some linux code using RVDS .

i used the instructions given in the following document

Building linux Applications using RVCT 4.0 and GNU tools

i used the latest CODE sourcery tool chain for this..


The compilation went through and it created a dynamically linked excuetable which uses shared libs.

My aim is to create a static excuetable which does not depend on any shared obj .

(basically something like gcc --static ) but i am not able to find such a option with armcc.

Kindly help

Regards
Sundar
Parents
  • Note: This was originally posted on 17th August 2010 at http://forums.arm.com

    Thanks, it worked for me. [...]

    Glad to hear it; you're welcome.

    I have one last question regarding  the translate_gcc option with armcc and compiling of linux application using RVDS in general

    Does it affect the performance which RVDS promises to give over gcc ? i mean For compiling linux applications we use all gcc libraries ( code sourcery libraries, use gcc options ). The effect of this on RVDS performance over gcc.?

    That really depends on how much time your application spends in the libraries and how much in the armcc-built code.  Profiling with something like DS-5 Streamline or oprofile is probably the right place to start.  If you find out you're spending a lot of time in the libraries (for example memcpy) it might be worth trying to use those functions from the RVDS libraries -- but it can be messy or impossible if the library functions are OS-dependant (file i/o, signals, sockets, ...).
Reply
  • Note: This was originally posted on 17th August 2010 at http://forums.arm.com

    Thanks, it worked for me. [...]

    Glad to hear it; you're welcome.

    I have one last question regarding  the translate_gcc option with armcc and compiling of linux application using RVDS in general

    Does it affect the performance which RVDS promises to give over gcc ? i mean For compiling linux applications we use all gcc libraries ( code sourcery libraries, use gcc options ). The effect of this on RVDS performance over gcc.?

    That really depends on how much time your application spends in the libraries and how much in the armcc-built code.  Profiling with something like DS-5 Streamline or oprofile is probably the right place to start.  If you find out you're spending a lot of time in the libraries (for example memcpy) it might be worth trying to use those functions from the RVDS libraries -- but it can be messy or impossible if the library functions are OS-dependant (file i/o, signals, sockets, ...).
Children
No data