Re: [rvm-research] Questions on perf tool usage in JikesRVM
Junjie Qian <[email protected]>
| Newsgroups | gmane.comp.java.jikes.rvm.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Erik, Thank you for help! This one works better than mine. Thanks! Best Junjie ________________________________ From: Erik Brangs <[email protected]> To: Junjie Qian <[email protected]>; "General discussion of Jikes RVM design, implementation, issues, and plans" <[email protected]> Sent: Thursday, August 22, 2013 9:26 AM Subject: Re: [rvm-research] Questions on perf tool usage in JikesRVM 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 _______________________________________________ Jikesrvm-researchers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers