Create an executable for a program in an interpreted language: Difference between revisions

Further emphasised that the task is about creating an executable, not making the source "executable" by putting #! ... at the start
(Further emphasised that the task is about creating an executable, not making the source "executable" by putting #! ... at the start)
Line 9:
<br><br>
So, instead of supplying the source for the program, we just want to produce an executable for that specific program. The purpose of this task is to show how it could be done for your language.
<br>
<b>Note: This task is about creating a compiled executable.</b> Some operating systems allow a script to start with e.g. "#!" and the name of the interpreter to run it. This is <b>not</b>. what is reuired, as this would mean shipping the source.
<br><br>
One method of doing this would be to create a program in a language for which there is a compiler available (C for example) that contanss the source of the program to be interpreted, writes it to a temporary file and calls the interpreter to run it and then deletes the temporary file afterwards.
3,031

edits