Skip to content
Create a gist now

Instantly share code, notes, and snippets.

anonymous /how to compile

php instead of c preprocessor
php test.c | gcc -xc -o test -
<?php include_once('/usr/include/stdio.h'); ?>
int main() {
<?php for ($i = 0; $i < 10; ++$i) { ?>
printf("Hello, world!\n");
<?php } ?>
return 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.