Rewriting Code from Interpreted to Compiled Language – Terminology

terminology

I'm currently trying to turn some R code (interpreted language) into C code (a compiled language), and I need to explain what is being done and/or why.

Does anybody know of a term/verb for this sort of practice?

Best Answer

If you are talking about a manual rewrite of the code in another language, then as MichaelT suggested in the comments, "porting" would be the most likely term.

While the historical connotation would be that "porting" is something you do to make software written for one hardware platform or operating system run on a different one, it can certainly also apply to rewriting from one language to another.

e.g. I work in the .NET field, and a lot of popular libraries and packages are ports of ones originally written in Java or other languages. For instance, unit-testing framework NUnit describes itself as "Initially ported from JUnit" (emphasis mine).

As for specifically rewriting code from an interpreted language to a compiled one - I don't think you'll find any word for that.


If, however, you are talking about using a tool which takes in R code and produces C code (thanks @aeongrail for point out that I had overlooked this), then the Wikipedia article on source-to-source compilers offers "transpiling" and "transcompiling" as two possible words.

Related Topic