How does code written in one language get called from another language

后端 未结 7 1817
余生分开走
余生分开走 2021-01-31 06:25

This is a question that I\'ve always wanted to know the answer, but never really asked.

How does code written by one language, particularly an interpreted language, get c

7条回答
  •  时光取名叫无心
    2021-01-31 07:02

    It's been a decade or so, but I did exactly this for my senior capstone (Well, I built a back-propogating neural network in C, and used a scheme program to teach it). The version of Scheme I was using had a compiler as well as an intepreter, and I was able to build it as a .o file. I don't know the version of scheme I was running, but it appears the RScheme will turn your scheme code into C.

提交回复
热议问题