views:

1545

answers:

10

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

+7  A: 

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.

kquinn
just now i tried tcc its good in such 900kb size its excellentbut my needs demand an online compiler. ok thank u for ur suggestion
Manoj Doubts
What could you possibly be doing that *demands* an online compiler?
kquinn
I've been forced to use an online compiler in the past. Sure, I could have built a C compiler that runs on a Nintendo DS and targets that platform. But it was way easier to send the C file to a server via the internet and compile it using devKitPro, and send the resulting ROM back to the DS. I can almost guarantee this isn't what he's doing, but you get the point, right? ;-)
Wallacoloo
+3  A: 

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.

philippe
I saw Comeau also but its mainly to evaluate their compiler as u said.But for me installation is not an option, I need one like an online compiler
Manoj Doubts
Manoj Doubts, why is an installation not an option ? You have restrictions in installing software (not your machine) ? Maybe a portable solution ?
ldigas
Nifle
+2  A: 

You asked for other languages: Here's one for Lisp (not a compiler, but an interpreter)

Online Lisp interpreter in Flash

splattne
+1  A: 

DJGPP Public Access Cross-Compiler (C/C++, DOS32, based on GCC)

DrJokepu
Its good. It is giving executables back. But it is giving heavy .exe back like simple hello world gives 44.8kb where as the same was 1.5kb in tcc and other compilers. ok so this online compiler is ok but some what heavy but portable without installation where as tcc is with installation.Thank you.
Manoj Doubts
A: 

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.

kgiannakakis
A: 

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

clemesha
A: 

yet another online compiler:

http://cmpe150-1.cmpe.boun.edu.tr

requires internet explorer. It supports sytax highlight, indentation etc. I wrote it as a part of my MS thesis

PS: did not test fork command

daghan
Requires Internet Explorer? Seriously?
Austin Kelley Way
sadly :( I did not have time for completing the xbrowser version. Working on it...
daghan
+3  A: 

http://ideone.com

lucky
+1 This should be the accepted answer.
Blindy
A: 

java online compiler

hongd
A: 

we have another compiler for c and c++ that is http://www.codepad.org/

krishnaprasad