Compile and run codes ONLINE!!
Sitting in front of a computer which doesn't have a compiler/interpreter.. but you need to run some program and share with your friends colleagues or anybody???
Well I was in such sort of a problem a few minutes back.. Needed to share a running code but the person with whom I needed to share didn't have a compiler..
Welcome to codepad . Great website. Works great for simple programs or rather at least you can be sure there aren't any errors in the code.
What it is
codepad.org is an online compiler/interpreter, and a simple collaboration tool. It's a pastebin that executes code for you. You paste your code, and codepad runs it and gives you a short URL you can use to share it. Paste the URL into chat or email to get help or to show someone how to do something. Or just try things out when you don't have an interpreter handy. It works well on many phones.
How it works
Code execution is handled by a supervisor based on geordi. The strategy is to run everything under ptrace, with many system calls disallowed or ignored. Compilers and final executables are both executed in a chroot jail, with strict resource limits. The supervisor is written in Haskell.
Languages you can work on the website
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
TCL
Here are the compilers and interpreters codepad uses to execute code:
C: gcc 4.1.2
flags: -O -fmessage-length=0 -fno-merge-constants -fstrict-aliasing -fstack-protector-all
C++: g++ 4.1.2
flags: -O -std=c++98 -pedantic-errors -Wfatal-errors -Werror -Wall -Wextra -Wno-missing-field-initializers -Wwrite-strings -Wno-deprecated -Wno-unused -Wno-non-virtual-dtor -Wno-variadic-macros -fmessage-length=0 -ftemplate-depth-128 -fno-merge-constants -fno-nonansi-builtins -fno-gnu-keywords -fno-elide-constructors -fstrict-aliasing -fstack-protector-all -Winvalid-pch
D: Digital Mars D Compiler v1.026
Haskell: Hugs, September 2006
flags: -98
Lua: Lua 5.1.3
OCaml: Objective Caml version 3.10.1
PHP: PHP 5.2.5
Perl: Perl v5.8.0
Python: Python 2.5.1
Ruby: Ruby 1.8.6
Scheme: MzScheme v372 [cgc]
Tcl: tclsh 8.4.16
Check more about the website here.
No Comments