Skip to main content

How to create JIT for a new platform?

4 replies [Last post]
jiankercn
Offline
Joined: 2008-04-02
Points: 0

HI guys:
I want to create JIT for a new platform.But I don't konw how and what should do?

Thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cjplummer
Offline
Joined: 2006-10-16
Points: 0

What platform do you want to port the JIT to?

Chris

jiankercn
Offline
Joined: 2008-04-02
Points: 0

SuperH4(sh4).

cjplummer
Offline
Joined: 2006-10-16
Points: 0

Start with the MIPS or PowerPC port, whichever processor you think you know best. If you know ARM well, maybe start with that port, but I'm guessing MIPS or PowerPC are a bit more similar to sh4. Assuming you are porting to linux, clone the following directories, where is arm, mips, or powerpc, and should be renamed to "sh4" when cloning:

build/
build/linux-
src/
src/linux-

Then go in and start modifying all the above specific code to instead be sh4 specific. This will be a very hard task. By the time you are done, you will need to be a cvm expert because of the types of challenging bugs you will need to work through. Personally I wouldn't advise you to try this. It takes expertise that you pretty much can only find with engineers who have worked on CVM.

Chris

Message was edited by: cjplummer

jiankercn
Offline
Joined: 2008-04-02
Points: 0

Yes!You are right!
I have port CDC from X86/linux to SH4/linux already.
And it works very well!
But at that time, I didn't port jit.
I want to try to port jit,but I was intimidated by the
complexity of jit.
I don't know what should I do if I deeply hope to port the part of JIT.

Message was edited by: jiankercn