问题
Any online C compiler that you know which can do the following:
- Compile and execute the C programs online
- File handling
- System functions like
exec()
,system()
,fork()
Or any compiler which does not need installation procedure (I mean that you can just copy paste a folder to run the compiler easily)
Note:Please do not propose Turbo C.I know some online compilers at codepad.org (gcc). I was using codeide.com but its out of service now I think. And as asked above online compiler will be a best advice that you can give for me.
My environment is Windows ... Thanks in advance. Any advices on other Language compilers are also invited
回答1:
Just install something like tcc. It's seriously not worth messing around with an online compiling site if you're going to be compiling files on any sort of regular basis.
回答2:
Comeau has an online C/C++ compiler, but it's mainly to evaluate their compiler.
or cygwin
I'd rather recommend to install cygwin, you'll get an unix-like environment, with gcc. Then setting up a Makefile - or even just a shell script - to be able to compile is not a big deal.
回答3:
You asked for other languages: Here's one for Lisp (not a compiler, but an interpreter)
Online Lisp interpreter in Flash
回答4:
rextester
回答5:
Maybe my answer is a bit late, but we have created an online compiler and IDE where you can run and create your files using just a browser.
At the moment we support a few languages (C, C++, ObjC, Java, Pascal, Fortran) and a simple file system, but we will enable many more features for better coding and debugging during the near future.
All the features offered at the moment are completely free and there is no registration needed (you can register though in order to keep your files online).
You can try our service here: www.sourcelair.com
回答6:
DJGPP Public Access Cross-Compiler (C/C++, DOS32, based on GCC)
回答7:
yet another online compiler:
http://cmpe150-1.cmpe.boun.edu.tr
It supports sytax highlight, indentation etc. I wrote it as a part of my MS thesis
PS: did not test fork command
回答8:
We have another compiler for C and C++ here: http://www.codepad.org/
回答9:
I have nothing for C. For other languages, this is a ruby interpreter. But honestly the best online development environment is the browser itself. Javascript is an advanced language. Combined with technologies like CSS and DHTML and frameworks like jQuery or Prototype you can build graphics applications. It is not hard to find debuggers (like Firebug) also.
Of course you can't interact with the file system. To overcome this you could write a plug-in for a browser (notably Firefox). There are many resources available for this and although it is not as straight forward as pure javascript, it is easier than most people believe.
回答10:
For Python and Sage, try out http://live.codenode.org. It is also open source under the BSD license, so you can be download and run it from your own computer, more info is here: http://codenode.org
回答11:
just a sudgestion.
I do not know why you do not want simply to install a compiler. However did you considered the possibility of using a portable one?
http://en.wikipedia.org/wiki/Portable_C_Compiler
best, Ste
回答12:
One of the better lists for C++ is isocpp Getting Started page. Unfortunately Cameau's
seems to be disabled for now. LiveWorkspace
has been in maintenance mode for a while and it is not clear when it is coming back, which is unfortunate since it has a simple interface and when it was working allowed you to switch between gcc
, clang
and intel
very easily.
Of the ones that are left Coliru is the most powerful, you have a full command line available and you can save files and therefore uses multiple files in your project.
The isocpp
list somehow is missing codepad which although rather primitive along with Coliru
allows you to use boost.
Coliru
, ideone
and codepad
all support many other languages as well. The list of languages supported by ideone
and codepad
is pretty large and is obvious on the main pages with Coliru
you don't have a list but besides C
and C++
it also supports python
, perl
and ruby
.
来源:https://stackoverflow.com/questions/523568/any-online-compiler-you-know-for-c-or-other-languages