[llvm-dev] Can LLVM optimize for a stack machine backend?
Xiaohui Liu via llvm-dev
llvm-dev at lists.llvm.org
Wed Apr 28 23:17:49 PDT 2021
Hi all,
I am developing a high-level language that compiles to bytecode for a
stack-based virtual machine. There are only two stacks similar to Forth
<https://en.wikipedia.org/wiki/Forth_(programming_language)>.
LLVM IR seems register-machine oriented and most backends target
register machines. I have seen several attempts to use it for a stack
machine backend, such as this
<https://lists.llvm.org/pipermail/llvm-dev/2009-February/020335.html>, this
<https://lists.llvm.org/pipermail/llvm-dev/2008-November/018626.html>, and
this <https://lists.llvm.org/pipermail/llvm-dev/2006-August/006460.html>.
What is the state of the art of using LLVM to optimize for a stack machine?
Or LLVM is not a good choice for this job?
Regards,
Xiaohui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210428/7510a844/attachment.html>
More information about the llvm-dev
mailing list