GCC Compiler

Rushi Suthar

Rushi Suthar

@rushi-suthar-LeCmjg Oct 25, 2024
I want to compile programs on my website using GCC compiler
like this one <a href="https://www.ideone.com" target="_blank" rel="nofollow noopener noreferrer">Online Compiler and IDE >> C/C++, Java, PHP, Python, Perl and 70+ other compilers and interpreters - Ideone.com</a>
any suggestions?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • [Prototype]

    [Prototype]

    @prototype-G9Gn5k Aug 7, 2012

    You'll need a VPS for that. You can then run commands via PHP/Python/Perl or anything else.
  • Rushi Suthar

    Rushi Suthar

    @rushi-suthar-LeCmjg Aug 16, 2012

    can you tell me more about the topic as i am unaware of the term VPS
  • Kaustubh Katdare

    Kaustubh Katdare

    @thebigk Aug 16, 2012

    Rushi Suthar
    can you tell me more about the topic as i am unaware of the term VPS
    VPS is a virtual private server - basically a 'virtual computer' created on top of a physical computer by using virtualisation software. That helps more control over the machines and the environment and also allow for quicker provisioning.

    [Prototype]
    You'll need a VPS for that. You can then run commands via PHP/Python/Perl or anything else.
    Isn't it the JavaScript that handles most of the stuff on client's machine? I'm not aware of how those online compilers work.
  • Abhishek Rawal

    Abhishek Rawal

    @abhishek-fg9tRh Aug 16, 2012

    Rushi Suthar
    I want to compile programs on my website using GCC compiler
    like this one <a href="https://www.ideone.com" target="_blank" rel="nofollow noopener noreferrer">Online Compiler and IDE >> C/C++, Java, PHP, Python, Perl and 70+ other compilers and interpreters - Ideone.com</a>
    any suggestions?
    CGI script can be created on server side which requires "sandbox".
    Note : any error in scripting can be potentially dangerous.
  • [Prototype]

    [Prototype]

    @prototype-G9Gn5k Aug 16, 2012

    The_Big_K
    VPS is a virtual private server - basically a 'virtual computer' created on top of a physical computer by using virtualisation software. That helps more control over the machines and the environment and also allow for quicker provisioning.


    Isn't it the JavaScript that handles most of the stuff on client's machine? I'm not aware of how those online compilers work.
    You answered it! Javascript does the stuffs on client machine. If you want to compile a program, then you would need the compiler on the clients machine. Hence, this work has to be done server side to make it independent.

    I've suggested the VPS requirement only because compilation and such low level stuffs will not be allowed by any shared hosting. You'll need to a server of your own with root access. Once you've proper access to the server, you can do the things with simple PHP scripts or as told by Troll_so_hard, by using CGI scripts.

    Oh and by VPS I mean, any server with high level privileges. Doesn't necessarily have to be an VPS. You can have a dedi if you want, but yeah, VPS is more than enough for this task.