There are typically two stages to running a program. First we compile,
then we execute.
1. [ C++ ] Compile
The compiler is commonly called c++ the C compiler is
traditionally called cc. The output is compiled to an
executable called a.out
[andrew@sqlzoo2 andrew]$ c++ Hello.cpp [andrew@sqlzoo2 andrew]$ ./a.out Hello World!
test text
1. [ C# ] Compile
The C# compiler is likely to be within the
c:\WINDOWS\Microsoft.NET\Framework folder
The result is an executable file Hello.exe
C:\>\WINDOWS\Microsoft.NET\Framework\v2.0.50215\csc.exe Hello.csc Microsoft (R) Visual C# 2005 Compiler version 8.00.50215.44 for Microsoft (R) Windows (R) 2005 Framework version 2.0.50215 Copyright (C) Microsoft Corporation 2001-2005. All rights reserved. C:\>Hello Hello world C:\>
test text
1. [ Java ] Compile
The java compiler is javac, it takes a .java file and
creates a .class file. The .class file is executed by the java command.
[andrew@sqlzoo2 andrew]$ /opt/jdk1.5.0_03/bin/javac Hello.java [andrew@sqlzoo2 andrew]$ /opt/jdk1.5.0_03/bin/java Hello Hello world
test text
1. [ Perl ] Compile
The compile stage is pretty much hidden away by the system in perl.
[andrew@sqlzoo2 andrew]$ /usr/bin/perl Hello.pl Hello world
test text