ARexx to C translator

1
1

I’m looking for a way to convert ARexx code into C source code. Are there any tools which would do the ARexx to C translation?

The tool should not be a wrapper but a source code translator.

  • Daedalus
    I’ve never heard of a translator, but if the reason for translating to C is to improve the speed of ARexx scripts, there are compilers that will create a 68k executable version of an ARexx script. Rexecute is one example.
  • You must to post comments
1
0

Either you knowledge in C is sufficient enough and then you should/could port your own code from Rexx to C yourself, either you might use an automated converter that is most likely to generate a C source that would not be suitable at all to work on.

Rexx has a lot of features that don’t exist in the C language : dynamic data typing, dictionnaries (aka associative arrays), iterators, interpret() and parse() functions. To make a C source to work straight out of a converter, you would have to implement these features in C.

This is probably the purpose of the runtime lib provided by Rexxtacy. It is interesting to note that in Rexxtacy Interpret() is not implemented and Parse() only partially :)

  • Spektro
    Yes, that’s how I’ve been moving from the alpha version to the beta version, by porting my own ARexx code. I guess there is no need for complete ARexx to C translation but a sceleton C code, generated from the ARexx code, would be as useful. That is if it contains a main program, where the ARexx main program’s code is in comments, and the subroutines containing the corresponding ARexx code in comments.
  • You must to post comments
0
0

Speed isn’t the reason. I’ve made program prototypes with ARexx since it’s easier and faster to make experiments with ARexx than C, at least to me :-) It’s the ARexx prototypes I’d like to convert to C.

The generated C source code would provide a good starting point to create a program’s beta version.

After searching the Internet I found that there is such a tool for OS/2 and DOS: Rexxtacy. It’s free but not open source. It relies on a runtime library so the C code it produces cannot be used with Amiga.

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.