Using gcc as a sort of scripting language.
carl hansen
carlhansen1234@gmail.com
Sun Dec 29 00:16:05 GMT 2024
>>> cat e
#!/bin/sh
#
#
root -l -b <<DOIT
#include <stdio.h>
int main(void)
{
puts("Hello, world, you can ignore all that particle physics if you like.");
printf("By the way, log(2025) is %lf\n",log(2025.));
printf("Here I have suppressed the banner\n");
return 0;
}
DOIT
>>> ./e
Hello, world, you can ignore all that particle physics if you like.
By the way, log(2025) is 7.613325
Here I have suppressed the banner
More information about the Gcc
mailing list