anyexec2C icon indicating copy to clipboard operation
anyexec2C copied to clipboard

Just wanted to say - it’s very interesting.. but

Open DmitryOlshansky opened this issue 5 years ago • 1 comments

Hey!

I think compiling down to C code is soooo damn hot and simple. Never thought of that but with tincc it should be super fast...

One thing I want to share with you is the following tidbit, I always put some variation of this boot-loader as the first few lines of valid “C” in my script files:

#if 0
if [ -f /tmp/<hash-of-$0> ] ; then
   exec /tmp/<hash-of-$0>
else
   gcc ... && exec /tmp/<hash-of-$0>
fi
exit 111
#endif

See you around, hope like the idea...

DmitryOlshansky avatar May 13 '20 06:05 DmitryOlshansky

Hi!

I love the boot-loader snippet. It's really neat! Great idea. Adding it to our generated C-code would allow us to add another target language (shell) without changing much. I might try to add it in once I get some free time.

vakabus avatar May 27 '20 13:05 vakabus