I am going to try to write a compiler for a dynamic language. Preferably some current virtual machine --- I do not want to deal with garbage collection (yet) and numerous other concerns are related to a good VM handle for you. Do VMS suggest you?
I'm on Linux, so I do not know that NAT (via mono) is a good idea. I have heard that the parrot is good for dynamic languages but I have not used any language should I invent my own? Is LLVM also counted as VM, on which I should compile it against, or is it difficult as straight as X86?
In addition, what professional and cons are there for stack-based versus register-based VM?
Performance and device support will be important. I will write the compiler in Haskell, so there is a nice interface plus that.
GVM and CLR (.NET) are the two most common goals for this, because they Both of you handle most of these issues for you, quite straightforward instructions have been given to work with both.
CLR has an advantage - it is actually built with the aim of supporting many languages since the beginning, and this (IMO) especially if you are not going to write a language that is used in the early languages Slows into the original "mold" that targets the runtime Mono works well so that I do not keep it away from the CLR target.
Comments
Post a Comment