Re: Using gcc as a sort of scripting language.

2024-12-28 Thread Paul Markfort via Gcc
To be clear. I am not suggesting that Compilers like GCC be modified to act on the "#!", or even fully support it. Just that they be simply modified to ignore "#!" - on the first line (which should terminate with either a "/r" or "/n"). This allows the easy creation of scripts to handle an exec

Re: Using gcc as a sort of scripting language.

2024-12-29 Thread Paul Markfort via Gcc
You can also do what I do now (the example in my first message), and don't need to pre-process the file before sending it to the compiler. What Jonothan suggested ("Still it would be a nice touch ...") would be great - but simply being able use a custom script to (like I do in the example) w

Using gcc as a sort of scripting language.

2024-12-26 Thread Paul Markfort via Gcc
This is just a suggestion to make it easier for Linux/Unix users to use the Gnu compilers instead of having to use a scripting language for short little utilities. I know someone has created and released a binary C interpreter for this purpose. But why would you want to install another progra