tiancaiamao / cora

Genius programmer should write his own lisp!
50 stars 7 forks source link

how about using tcc for dynamic code generation? #47

Open tiancaiamao opened 1 day ago

tiancaiamao commented 1 day ago

A blog https://bun.sh/blog/compile-and-run-c-in-js recently TCC is compiles extremely fast, and the libtcc API seems friendly for dynamic code generation. Maybe cora can use it?

Pros:

Cons:

tiancaiamao commented 1 day ago

Cons: debug become much more difficult

tiancaiamao commented 1 day ago

Cons: can't make tail cail easier as long as targeting C... maybe target QBE IR get more advantages?