15

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

skaffman
  • 398,947
  • 96
  • 818
  • 769
Manoj Doubts
  • 13,579
  • 15
  • 42
  • 45

12 Answers12

6

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
  • 10,433
  • 4
  • 35
  • 35
  • 1
    just now i tried tcc its good in such 900kb size its excellent but my needs demand an online compiler. ok thank u for ur suggestion – Manoj Doubts Feb 07 '09 at 10:39
  • 5
    What could you possibly be doing that *demands* an online compiler? – kquinn Feb 07 '09 at 10:51
  • 2
    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? ;-) – Ponkadoodle Feb 19 '10 at 20:42
3

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.

philant
  • 34,748
  • 11
  • 69
  • 112
  • 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 Feb 07 '09 at 10:40
  • Manoj Doubts, why is an installation not an option ? You have restrictions in installing software (not your machine) ? Maybe a portable solution ? – Rook Feb 07 '09 at 10:46
  • 1
    How about a Live-CD? http://www.livecdlist.com/?pick=All&showonly=Development – Nifle Feb 07 '09 at 17:30
3

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

Online Lisp interpreter in Flash

splattne
  • 102,760
  • 52
  • 202
  • 249
3

rextester

ren
  • 3,843
  • 9
  • 50
  • 95
2

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

akalipetis
  • 938
  • 1
  • 7
  • 14
1

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

daghan
  • 948
  • 10
  • 18
  • 3
    Requires Internet Explorer? Seriously? – Catharsis Feb 19 '10 at 20:33
  • sadly :( I did not have time for completing the xbrowser version. Working on it... – daghan Mar 21 '10 at 08:34
  • 4
    worked on it, cross browser now – daghan Dec 23 '11 at 15:17
  • 1
    Wondrful, I am loving it :-). I tried it and it worked splendid (better than any online compiler in my opinion). Tested `printf("Helloo\b Dear");`, unlike other online compilers, this one did gave the expected output. Just one thingy(if this can be added), instead of opening a new window/tab, what if the result can be displayed and an option to download the `.exe` if one opts for it. – nIcE cOw Oct 09 '14 at 03:37
1

We have another compiler for C and C++ here: http://www.codepad.org/

Cosmin
  • 21,216
  • 5
  • 45
  • 60
1

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

Tamas Czinege
  • 118,853
  • 40
  • 150
  • 176
  • 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 Feb 07 '09 at 12:24
0

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
  • 1,908
  • 2
  • 12
  • 12
0

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.

Shafik Yaghmour
  • 154,301
  • 39
  • 440
  • 740
0

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
  • 103,016
  • 27
  • 158
  • 194
0

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

Stefano
  • 3,981
  • 8
  • 36
  • 66