tags:

views:

169

answers:

6

This company have a interesting cpu that run in a amazing speed. Will it be possible to emulate c or is the memory to small?

http://www.greenarrays.com/home/products/index.html

So someone that have tried to emulate c in forth may have a answer.

+1  A: 

A first cursory glance at the instruction set suggests that "colorForth" can be thought of as a simple machine language. Given that, it may be possible to write a C compiler that compiles to colorForth as its target instruction set.

Of course, it may be easier to write code in colorForth in the first place.

Greg Hewgill
+1  A: 

From the looks of it, if someone writes a compiler which can output the machine code (33 instructions, not too complex), you won't need to emulate C, you could just directly compile it.

Of course, it would be extremely limited, since it looks like each chip gets a tiny amount of internal RAM (64 words isn't a lot to work with). There's an 18-bit memory address port attached to one of the cores, so you can have 256MB of external RAM, but it can only be directly accessed by a single one of the cores, and then it would need to be passed to the other.

It's possible that different cores could be used for different functions, but that would complicate the compiler quite a bit.

pib
+1  A: 

It could be done but it their interpreter would should handle parallel tasks, load distribution and etc. It will probability be best to just go with their Forth interperter.

Gerhard
+1  A: 

There is C translator for SEAforth40 chip (previous version of GA144 chip)

Presentation: http://www.asu.ru/files/documents/00002990.pdf

diver
A: 

C translator for SEAforth40 chip users guide: http://www.asu.ru/files/documents/00002989.pdf

diver
A: 

C translator for SEAforth40 chip zip-executable http://www.asu.ru/files/documents/00002991.pdf - just download, rename extension to .zip and unpack

If need help ask :)

diver