I am trying to create an online gcc compiler that a browser can access. For all this I use php, cygwin on an XP window. In fact, I provide the user with a code window in the browser.
General process:
- $ source write in.c file
- .c compiles the gcc compiler file and the .exe file.
- the output of the .exe file is shown to the user.
It was assumed that there is no reading function in program c for testing. I use only one operator printf.
The problem is this:
If 30 simultaneous requests are requested by 30 users, the program compiler at the same time, this will lead to an exit in about 15 seconds, which is too large.
Can anyone help me reduce this time. All suggestions are welcome.
Is it possible to simply read the output of a C program without creating a .exe file.
source
share