<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Xiaohui,<div class=""><br class=""></div><div class="">I think the situation didn’t really change with respect to what you found.</div><div class="">In particular I believe the advice from Chris that you already found (<a href="https://lists.llvm.org/pipermail/llvm-dev/2008-November/018626.html" class="">https://lists.llvm.org/pipermail/llvm-dev/2008-November/018626.html</a>) is the best thing you can do right now.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">-Quentin<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Apr 28, 2021, at 11:17 PM, Xiaohui Liu via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi all,<div class=""><br class=""></div><div class="">I am developing a high-level language that compiles to bytecode for a stack-based virtual machine. There are only two stacks similar to <a href="https://en.wikipedia.org/wiki/Forth_(programming_language)" class="">Forth</a>.</div><div class=""><br class=""></div><div class="">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 <a href="https://lists.llvm.org/pipermail/llvm-dev/2009-February/020335.html" target="_blank" class="">this</a>, <a href="https://lists.llvm.org/pipermail/llvm-dev/2008-November/018626.html" target="_blank" class="">this</a>, and <a href="https://lists.llvm.org/pipermail/llvm-dev/2006-August/006460.html" target="_blank" class="">this</a>. 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?</div><div class=""><br class=""></div><div class="">Regards,</div><div class="">Xiaohui</div></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></div></body></html>