How to use cppInterpreter in Hotspot?

View: New views
6 Messages — Rating Filter:   Alert me  

How to use cppInterpreter in Hotspot?

by Colin(Du Li) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

If I hope hotspot only use cppInterpreter without using template interpreter, what shall I do?
Thanks a lot!

Du Li

Re: How to use cppInterpreter in Hotspot?

by coleen.phillimore :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Build with CC_INTERP=1 as an option on the make command line.


On Mon, 2009-02-23 at 13:24 -0800, Colin(Du Li) wrote:
> Hello,
>
> If I hope hotspot only use cppInterpreter without using template
> interpreter, what shall I do?
> Thanks a lot!
>
> Du Li


Re: How to use cppInterpreter in Hotspot?

by Colin(Du Li) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Thank you for your reply!
I still have some questions.
1. Can c++ interpreter be used in product version?
2. Can c++ interpreter be used in 64 bit machine with Linux OS.

Thanks again.

Coleen Phillimore - Sun Microsystems wrote:
Build with CC_INTERP=1 as an option on the make command line.


On Mon, 2009-02-23 at 13:24 -0800, Colin(Du Li) wrote:
> Hello,
>
> If I hope hotspot only use cppInterpreter without using template
> interpreter, what shall I do?
> Thanks a lot!
>
> Du Li

Re: How to use cppInterpreter in Hotspot?

by Christian.Thalinger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 2009-02-23 at 20:12 -0800, Colin(Du Li) wrote:
> Hi,
>
> Thank you for your reply!
> I still have some questions.
> 1. Can c++ interpreter be used in product version?
> 2. Can c++ interpreter be used in 64 bit machine with Linux OS.

Both answers should be yes.  I don't see a reason why it shouldn't work.
Have you tried it?

-- Christian


Re: How to use cppInterpreter in Hotspot?

by Colin(Du Li) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,
When I added  CC_INTERP=1 as make option. I got following error :
Linking vm...
{ \
            echo Linking launcher...; \
             \
            gcc -m32 -march=i586 -Xlinker -O1 -m32 -march=i586 -export-dynamic  -L `pwd` -o gamma launcher.o -ljvm -lm -ldl -lpthread; \
             \
        }
Linking launcher...
/home/dli/Hotspot/openjdk_b24/jdk7/build/openjdk7_full_debug/linux_i486_compiler2/jvmg/libjvm.so: undefined reference to `frame::set_interpreter_frame_sender_sp(int*)'
/home/dli/Hotspot/openjdk_b24/jdk7/build/openjdk7_full_debug/linux_i486_compiler2/jvmg/libjvm.so: undefined reference to `methodOopDesc::set_result_index(BasicType)'
/home/dli/Hotspot/openjdk_b24/jdk7/build/openjdk7_full_debug/linux_i486_compiler2/jvmg/libjvm.so: undefined reference to `frame::interpreter_frame_set_last_sp(int*)'
/home/dli/Hotspot/openjdk_b24/jdk7/build/openjdk7_full_debug/linux_i486_compiler2/jvmg/libjvm.so: undefined reference to `frame::interpreter_frame_set_monitor_end(BasicObjectLock*)'
/home/dli/Hotspot/openjdk_b24/jdk7/build/openjdk7_full_debug/linux_i486_compiler2/jvmg/libjvm.so: undefined reference to `CppInterpreter::contains(unsigned char*)'
collect2: ld returned 1 exit status

How can I fix it?
Thanks a lot!


Christian Thalinger-3 wrote:
On Mon, 2009-02-23 at 20:12 -0800, Colin(Du Li) wrote:
> Hi,
>
> Thank you for your reply!
> I still have some questions.
> 1. Can c++ interpreter be used in product version?
> 2. Can c++ interpreter be used in 64 bit machine with Linux OS.

Both answers should be yes.  I don't see a reason why it shouldn't work.
Have you tried it?

-- Christian

Re: How to use cppInterpreter in Hotspot?

by Christian.Thalinger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 2009-03-04 at 10:40 -0800, Colin(Du Li) wrote:
> How can I fix it?

I recently tried to build the C++ interpreter and it worked.  You should
try a more recent build than b24.  If that fails too, please file a bug
report.

-- Christian