Two questions, -gp and why is it slow?

Brandon Heller <[email protected]> Thu, 7 Jul 2005 15:11:20 +0000 (UTC)
Newsgroups gmane.comp.java.vm.sablevm.general
Message-ID <[email protected]>
Hi, 
For a project, I need to generate profile information on SableVM with gprof. 
I can successfully compile sableVM on a SuSE machine and run sableCC as a 
benchmark on it.  After running configure, I modified the makefile in 
sablevm-sdk/sablevm by adding the -gp option to both CFLAGS and CXXFLAGS.  I 
then ran 'make' and 'make install', yet the profile information (gmon.out) 
wasn't created. I'm wondering if this option must be specified in the 
configure file, and if so, how one might do that.  I'm using new 1.12 release. 
 
The other question: I compiled sablevm-1.12 using all three --with-threading= 
options, and came up with the following times for running sablecc: 
 
switch: 59.38sec 
direct: 57.00 
inlined: 47.41 
 
These times were from an unloaded P4 2.6Ghz with 512MB RAM and HT, yet the 
times are much slower than the 1.5GHz 1.5GB RAM machine from Etienne's thesis 
paper.  Is the sablecc benchmark heavily memory-dependent, have I missed a 
'debug' compiler switch, did the Simple C file change, or is something else to 
blame for this discrepancy? 
 
Your help is much appreciated! 
Thanks, 
Brandon Heller 
Washington University