Re: [rvm-research] Questions on perf tool usage in JikesRVM
Erik Brangs <[email protected]>
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
On 21.08.2013 04:20, Junjie Qian wrote:
> Because sys.C in JikesRVM is built with old gcc toolchain,
By default, sys.C is built using /usr/bin/gcc. You can change the
compiler and the compiler options by editing the appropriate properties
file in build/hosts in your Jikes RVM directory.
> I changed the line in build.xml as "<arg
> line="-Wl,--no-as-needed ${c++.args} ${rvm.common.args} ${gcspy.lib.dir}
> -lpthread ${perfevent.lib} ${c++.librt} ${rvm.src} ${c++.rdynamic} -g"/>"
It seems the linking order is currently wrong when building with
perfevent. "${perfevent.lib}" needs to come after "${rvm.src}" instead
of before it. You can try to use
<arg line="${c++.args} ${rvm.common.args} ${gcspy.lib.dir} ${rvm.src}
${perfevent.lib} ${c++.librt} -lpthread ${c++.rdynamic} -g"/>
instead of using "-Wl,--no-as-needed".
Kind regards,
Erik Brangs
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk