This is a various compiler and you can use it for your experiment...
Turbo Pascal and Turbo C: Borland has released for free version 1.0, 3.2 and 5.5 of its famous Turbo Pascal.
Dev-Pascal : Free IDE and compiler for Pascal (with Free Pascal).
Dev-C++ : Free IDE and compiler for the C and C++ languages. Delphi and C source code available.
SmallC : Small C compiler written by J. E. Hendrix. C source code included.
BCX : Very powerful and easy to use system which generates C code capable of compiling under Lcc-Win32 and MingW32 (or Dev-C++) without any modification. It also comes with a resource translator which can read MS resource's code and produce code in C (Win32).
CoPascal : Co-Pascal is an extension of the Pascal-S compiler developed by N. Wirth. Pascal source code included.
P32 : Pascal compiler. Currently in development but works great. Pascal source included.
PowerPascal : Power Pascal is a fully 32-bit, native Pascal compiler for OS/2 2.0 or better. Pascal source included.
Djgpp : THE free compiler for c, c++, forth, pascal and more including C sources.
TinyPascal : A small implementation of the Pascal language. Full Delphi sources included.
Free Pascal : 32-bit Pascal compiler for Dos, Linux, OS/2. Pascal source code included. Used in Dev-Pascal.
ScriptBasic : Free embeddable and extendable scripting basic interpreter with full C source code. Tested on Windows NT and on Linux.
LCC-Win32 : a free compiler system for Windows by Jacob Navia.
lcc : lcc is a retargetable compiler for ISO Standard C. It generates code for the ALPHA, SPARC, MIPS R3000, and Intel x86 and its successors.
Yabasic : Small basic interpreter (with source code for Visual C++ 6) for Windows and Linux
Pacific C for DOS : Freeware version for MSDOS of a professional C IDE/compiler shareware
TopLogo++ : This is an IDE/compiler tool for developers and scientists. The package includes full documentation, Compiler IDE, demos, help etc...
JavaTM 2 SDK : JavaTM Software Development Kits and Runtimes
XBasic : interactive program development environment, advanced 32-bit/64-bit BASIC, interactive graphical GuiDesigner, multi-platform portable source code, Windows95 - Windows98 - WindowsNT - Linux - UNIX
XSCompiler : This MSDOS compiler generates 32-bit protected mode programs from a language that is C compatible, but includes classes and multiple inheritance. It comes with the standard C library, graphics, sound, multitasking, compression, animation, GIF, PCX, FLI/FLC, and other libraries. The compiler itself is compiled using this language.
GNAT : GNAT is an Ada95 compiler with the source code available in Ada95.
Rapid-Q : Rapid-Q is a free IDE and BASIC op-code compiler system for Win32, Linux, Unix... It is very easy to use and to integrate with many other goodies like mySQL, cgi, DirectX, Direct3D, GTK ...
Mingw : A very good Win32 port of the GNU GCC compiler (used in Dev-C++)
Cygwin : Another free and good Win32 port of GCC and GNU Utils
GCC : THE one and only GCC compiler system. Runs on nearly any system.
Phoenix/Envelop : Rapid Development under Basic.
B++ : B++ is a BASIC compiler built on top of C++ - it converts BASIC code to C++, and then calls C++ compiler to produce EXE (or DLL). Source code is in Free Pascal.
GNU Ada : Free ADA compiler.
Dev86 / BCC : x86 C/Assembler development tools (C compiler, assembler, linker). Under the GPL. Linux and DOS binary distributions available.
http://www.digitalmars.com : FREE C/C++ Compiler for DOS, Win & NT by theauthor of Zortech C++ .
Virtual Pascal : A tool of choice for 32-bit cross-platform development using the Pascal language. It is compatibile with Borland Pascal and Delphi, including the Run-Time Library (RTL), an optimizing compiler, a powerful integrated debugger, and comprehensive online documentation.
PlugSys Xbase compiler : PlugSys has a free edition and a Professional edition on their web site. It is a character based compiler for the Xbase(dbase, clipper) language. There are both DOSWin95/98/NT and Linux version. Same code compiles on either system. Also has a server page tool (free and pay versions). The documentation that comes with the download is great. Free version only requires registration to download.
Context programming language : Simple programming language and compiler for MS-DOS with sources and sample programs on it's own input language by Andrei V. Khokhlov
Babya : B++ compiler for DOS with setup and Windows 9x support.
OpenWatcom : Open Watcom is a joint effort between SciTech Software, Sybase®, and a select team of developers, which will bring the Sybase Watcom C/C++ and Fortran compiler products to the Open Source community.
Self : A port of a compiler for the Self programming language to Linux. The system was originally developed at Stanford University and Sun, and it forms the technological base of the Java Hotspot compiler. A nice GUI is included.
SmallEiffel : The GNU compiler for the Eiffel language. Requires an ANSI C compiler. Supports AIX, Amiga, BeOS, BSD, Cygwin, MSDOS, FreeBSD, GNU/Hurd, GNU/Linux, HP-UX, IRIX, MacOS, NetBSD, NeXT, OS/2, OSF1, QNX, SCO, Solaris, OpenVMS, Windows 95/98/NT/2K and XENIX.
Inno Pascal : Inno Pascal is a simple Pascal compiler for Win32. It produces compact, native-code x86 executables without requiring any external assemblers or linkers. It was written entirely from scratch; it is not based on any other existing compilers. Full source code is included under the GPL license.
Harbour Project : Harbour is an Open Source Clipper Compatible Compiler. It includes OO extentions, and lots of useful adds. The Licence is GNU+Harbour Exception, what means that the licence does not infects the programs you produce with the compiler.
Read More for Free compilers