Skip to main content

How can we port the cldc to support ARC cpu archticture on linux platform

3 replies [Last post]
zhengqihao
Offline
Joined: 2008-07-16

Hi ALL
I can compile the CLDC VM on linux-i386 and linux-arm target .
at the last step of CLDC target debug building , it will compiling the auto generated
file Interpreter_arm.s under target\debug using arm tool AS .
and this file is generated by void SourceAssembler::start() in SourceAssembler_arm.cpp , it include arm assemble instruction code.

if I want to port the cldc to support ARC cpu archticture on linux .
How can I let SourceAssembler_arm.cpp to generate the assemble code in ARC
instruction set.

Thanks a lot

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
zhengqihao
Offline
Joined: 2008-07-16

Thanks danila

I don't know how to configure to use C interpreter loop to skip assembler language
port , the PhoneME document did not show linux_c config option in available
environment variable before run make command .

would you give me more info on how to configure it before run make command

thanks
Zhengqi

danila
Offline
Joined: 2006-09-25

Hi

CLDC VM includes bytecode interpreter loop.
For i386 and arm targets it is automatically generated by loopgen - interpreter loop generator.
In order to port CLDC VM to a new instruction set you have to port interpreter generator.

For more details, see the porting guide:
http://java.sun.com/javame/reference/docs/cldc-hi-2.0-web/doc/porting/ht...

For quick port you can try to use C interpreter loop instead.
To build the VM with C interpreter loop for linux, use linux_c config
This VM flavor runs slower, but is easier to port.

Danila

Oleg.Pliss@Sun.COM

Привет,

На самом-то деле у нас где-то был порт на ARC, его Кинсли делал. Где
этот порт теперь, я не знаю.

Олег

---------------------------------------------------------------------
To unsubscribe, e-mail: feature-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: feature-help@phoneme.dev.java.net