Any compiler that is server based?
Any compiler that is server based?
Ok, I love to program while on the fly(and hence on unfamiliar computers) and so I'd like if it was possible to compile C or C++ code through a PHP script...
I have yet to see a thing like it...so it might be a future program I attempt to make...
I have yet to see a thing like it...so it might be a future program I attempt to make...
Should be dead easy to whip up a script that takes a list of files, and passes them to make / GCC on the server, returning the binary.
I don't know of a ready-made solution however, and don't think there are many around simply because the requirement is a bit... exotic.
I don't know of a ready-made solution however, and don't think there are many around simply because the requirement is a bit... exotic.
Every good solution is obvious once you've found it.
- AndrewAPrice
- Member
- Posts: 2299
- Joined: Mon Jun 05, 2006 11:00 pm
- Location: USA (and Australia)
http://www.google.com/search?q=online+compiler
I'm sure a few will describe how they're doing it.
I'm sure a few will describe how they're doing it.
My OS is Perception.
Considering that I have done so, I would say yes. PHP is actually optimal for situations like this because it is stronger with dynamic memory and strings. Sorting arrays and building syntax trees is less tedious. The speed factor is negligible as Zend is pretty good with developing their product.hckr83 wrote:meh...it's possible, but it'd mean writing a parser and assembler in PHP(I'd want it to work on any server I put it on, btw)
also, I can't make compilers or parsers or such...so...
Also, you can keep up hopes that the Roadsend PHP compiler, which is open-source now, will continue to improve to the point of real usability.
are you retarded, reading this thread I seen least 4 solutions to what you want.hckr83 wrote:meh...it's possible, but it'd mean writing a parser and assembler in PHP(I'd want it to work on any server I put it on, btw)
also, I can't make compilers or parsers or such...so...
If your looking for a ready made solution to this very miner problem, then you should learn how to do it _yourself_, rather than blindly copying code.
Sorry if I'm to harsh, but this kind of question really annoys me.
Microsoft: "let everyone run after us. We'll just INNOV~1"