Any Online compiler you know for C or other languages? [closed]
Asked Answered
T

12

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

Toxophilite answered 7/2, 2009 at 10:16 Comment(4)
Do you mean execute the code on the server? Or return the compiled exe in the response?Hostile
any way will be useful Even I want an exe which can be passed with some argc,argvsToxophilite
My guess is NO. Executing arbitrary code on a server, what a security nightmare. Perhaps someone would let you compile and download an exe, but that's it.Unblown
Why on earth would you need a compiler that works exclusively in a browser?Ricoricochet
G
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.

Gregorygregrory answered 7/2, 2009 at 10:21 Comment(3)
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 suggestionToxophilite
What could you possibly be doing that demands an online compiler?Gregorygregrory
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? ;-)Ceramic
C
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.

Communism answered 7/2, 2009 at 10:37 Comment(3)
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 compilerToxophilite
Manoj Doubts, why is an installation not an option ? You have restrictions in installing software (not your machine) ? Maybe a portable solution ?Beeswing
How about a Live-CD? livecdlist.com/?pick=All&showonly=DevelopmentUnblown
L
3

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

Online Lisp interpreter in Flash

Linguistician answered 7/2, 2009 at 10:45 Comment(0)
C
3

rextester

Cyruscyst answered 24/10, 2011 at 20:7 Comment(1)
Best online compiler!Occupational
B
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

Broadleaved answered 28/7, 2011 at 9:26 Comment(2)
Link does not seem to work anymore.Hardden
Hello Sharik, sourceLair is up and running, the link is working fine.Broadleaved
D
1

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

Dobb answered 7/2, 2009 at 11:46 Comment(1)
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.Toxophilite
S
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

Severus answered 19/2, 2010 at 20:27 Comment(4)
Requires Internet Explorer? Seriously?Lend
sadly :( I did not have time for completing the xbrowser version. Working on it...Severus
worked on it, cross browser nowSeverus
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.Middleaged
M
1

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

Marquisette answered 23/10, 2010 at 5:39 Comment(0)
N
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.

Nollie answered 7/2, 2009 at 16:2 Comment(0)
B
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

Besom answered 12/10, 2009 at 4:9 Comment(0)
A
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

Auld answered 28/7, 2011 at 9:34 Comment(0)
H
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.

Hardden answered 7/8, 2013 at 3:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.