Compile expressions to native C code in compiled monitors

Issue #33 new
Sean Kauffman repo owner created an issue

Right now, the compiler does the easy thing with the reverse polish expressions and dumps them as-is and includes the reverse polish code and the stack code to execute them. This works fine, but really it would make a lot more sense to just dump native C code that can be compiled instead. This would have the added benefit of removing the need to include the expression calculator or stack code in the compiled monitor, reducing the binary size.

The challenge of doing this is the need to handle the duck typing of the expressions. It shouldn’t actually be so hard but it will require some effort.

Comments (0)

  1. Log in to comment