Create a gist now

Instantly share code, notes, and snippets.

anonymous /how to compile
Created Mar 12, 2013

What would you like to do?
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