Expand/Shrink

Transpilation to C

I (Pete Lomax) am perfectly willing to help out, but simply refuse to even start on this without any help.

Phix already has a tried and tested pwa/p2js which emits JavaScript, and it is not unreasonable to extend that to emit C.

As a first step I might suggest comparing some of the Phix/builtin files with their auto-generated Phix/pwa/builtin counterparts.
With your extensive knowledge and experience of the C programming language, create the C equivalent of one of the simpler files,
making minimal changes where practical, ie resist any temptation to insert comments or shuffle things about unnecessarily.
Also write a C test harness (or existing sample) to prove it works, and try to maintain a reasonably similar include hierarchy.

You may also want to tap (say) "JavaScript to C transpiler" into your favourite search engine, if for nothing else to collect some ideas for any additional C routines that might be needed. Should you think it is a good idea to have a new and separate (say) sequence.c file, then do that.

One thing I rely on is that JavaScript can have a '$' in names, so I can create a few useful "globals" that cannot possibly clash with any in Phix, but I have simply no idea whether a similar trick would be at all possible in C.

Once I have a suitable and sufficient collection of such examples, that I can actually compile and see working, then I can/will start/assist updates to p2js (which maybe would eventually deserve to be renamed, but more likely will be merged into the main phix compiler/interpreter/transpiler in version 2.0.0).