|Subject:||Re: [Tinycc-devel] A wish for 2018? C->JVM compiler|
|Date:||Sun, 11 Mar 2018 07:47:16 +0100|
Your implementation using switch has a name, it’s called trampoline https://en.wikipedia.org/wiki/Trampoline_(computing).
This is what you have to do when backend does not support native goto, and it’s generally the case when you write a compiler having a high level language as target. Another solution may be CPS https://en.wikipedia.org/wiki/Continuation-passing_style
From: Tinycc-devel [mailto:address@hidden On Behalf Of Charles Lohr
This raises another question: Anyone else interested in a tinycc javscript target?
On Sat, Mar 10, 2018 at 11:43 AM, Christian Jullien <address@hidden> wrote:
First link looks especially interesting. thanks
My question is if tinycc could generate JVM code which any java engine can use.
IMHO setjmp/longjmp is probably not very easy to compile to a JVM equivalent.
Quick search gave me these links:
I am not a Java guy, so not sure if that's what you imagine, but it seems close.
2017-12-31 12:13 GMT+05:45 Christian Jullien <address@hidden>:
Hi all, I don’t how much it could cost nor it’s even feasible, but it would be nice to have a JVM backend. (as other languages already use, see https://en.wikipedia.org/wiki/List_of_JVM_languages)
This could be a nice student project.
- Have a portable C on top on JVM
- Smooth integration with JDK libs
- Optional GC
- Optimization done by JIT
- Speed of compiled program
Any university there willing to make this port happen?
|[Prev in Thread]||Current Thread||[Next in Thread]|