![]() |
Programming in a Linux or Windows environment is in many ways very similar and in many ways very different. In Linux C++ programming is generally done in the command line using the GNU C++ Compiler. There are an assortment of command line text editors used to program in Linux. Among the most popular editors are VI, Emacs, and Pico. There are also GUI editors like Kate that highlight key words in the same manner that Visual Studio does. These editors create a source code file which the GNU compiler uses to create an executable file. The GNU compiler is also a linker so it can link various object files together into an executable. In Windows C++ programming is typically done using Microsoft Visual C++. Visual C++ provides the user with a GUI and combines creating, compiling, and linking code into a single program. It also allows programmer to organize related files into a project for convenience. The same source code can be used for both platforms due to C++ being platform independent. A program written in C++ can be used on any operating system that has a compiler for C++. Assembly programming for Linux and Windows is the same and very different at the same time. When Linux is running on an x86 machine, then the assembly programming is essentially the same as Windows programming. Some commands will not work on one or the other but the basic premise is the same.
Editing a source code file in Linux with VI
Compiling, linking, and running the program in Linux