Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DmitryOlshansky opened this issue May 13, 2020 · 1 comment
Open

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

DmitryOlshansky opened this issue May 13, 2020 · 1 comment

Comments

@DmitryOlshansky
Copy link

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...

@vakabus
Copy link
Collaborator

vakabus commented May 27, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants