Post Reply 
[idea] SASM to ARM transcoding
04-03-2017, 07:13 PM
Post: #3
RE: [idea] SASM to ARM transcoding
I worked with a team that created a binary translator in the 90's. The problem is harder than it appears.

As a simple example, the Saturn has a 20-bit address. Each address points to a 4-bit nibble. How will you translate this to ARM? If you keep the 20-bit address space, then you'll surely run out of room with the larger opcodes in the ARM. If you change the size of the addresses then the size of everything on the stack changes. And when a program reads an address into a 20-bit register, what will you do with the extra bits that don't fit?

There are ways to handle this sort of problem but I hope this gives you a sense of hte difficulties. A much better approach is to provide compatibility at a higher level, such as UserRPL like Claudio is doing. I have been working on-and-off on a modern RPL implementation with the goal System RPL compatibility, but at the rate I'm going, it won't be ready for a couple of centuries.... Sad

Dave
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[idea] SASM to ARM transcoding - sunhp - 03-30-2017, 07:37 AM
RE: [idea] SASM to ARM transcoding - David Hayden - 04-03-2017 07:13 PM



User(s) browsing this thread: 1 Guest(s)