How to make a .Net or JVM language?

后端 未结 5 1389
自闭症患者
自闭症患者 2021-01-31 21:41

I am seeing all these new languages for .NET and JVM. How does one begin to make one?

I can\'t find any good documentation on JVM or MSIL specifications.

5条回答
  •  执笔经年
    2021-01-31 22:24

    The Java Virtual Machine Specifications, Second Edition is available online.

    One can target the JVM by having a writing a compiler that produces Java bytecode (which is defined in the JVM specifications.)

    Or, by utilizing existing libraries such as Apache BCEL, one can produce valid class files through a Java program without having to actually manipulate the bytecode at the byte-level.

提交回复
热议问题