(2) Software that translates a program written in a high-level programming language (C/C++, COBOL, etc.) into machine language. A compiler usually generates assembly language first and then translates the assembly language into machine language. A utility known as a "linker" then combines all required machine language modules into an executable program that can run in the computer. See optimizing compiler.
The following is a conceptual example of source code being converted to machine language by the compiler:
Source Code Assembly Language Machine Language
IF COUNT=10 Compare A to B Compare 3477 2883
GOTO DONE If equal go to C If = go to 23883
ELSE Go to D Go to 23343
GOTO AGAIN
ENDIF
Actual Machine Code (simulated)
10010101001010001010100
10101010010101001001010
10100101010001010010010
From C to Assembly Language
A C/C++ compiler converts C and C++ code into assembly language as shown in this example. The red arrows point to various function calls, and the assembly code to perform those calls follows each statement.
Compilers and Interpreters
Compiled programs (right) are translated into the machine language of the target computer. Interpreted programs (left and center) are either kept in their original source code or are precompiled into an intermediate form. In both cases, an interpreter is required to translate the program into machine language at runtime, whereas the compiled program is "ready to go."
![]() | Reproduced with permission from Computer Desktop Encyclopedia. Copyright (c) 1981-2009 The Computer Language Company Inc. All rights reserved. |
Additional Resources
- Batch File Compiler Professional Edition 4.52 (Windows)
- This version of Batch File Compiler Professional Edition includes a free BAT to EXE Converter without any limitation. Convert batch files to EXE format. Select EXE Icon. Run Invisible Mode. Embed additional dependency files. Print centered color text, gather user input, do math, change text to lower/upper case for compare,...
- Software downloads 2009-11-05
- DoneEx XCell Compiler 1.9.9 (Windows)
- DoneEx XCell Compiler offers very easy and hassle free Microsoft Excel workbook copy protection. You can compile Excel spreadsheet into EXE application with securely hidden formulas in binary format and protected VBA code. With registration/license management feature you can protect your compiled Excel workbook from illegal copying from one computer...
- Software downloads 2009-11-05
- Jitbit Macro Recorder Lite 4.5 (Windows)
- Record keyboard and mouse actions for later use. Jitbit Macro Recorder LITE is a low cost automation solution to record and play mouse clicks, mouse movements and keyboard strokes. Macro Recorder LITE is quick to configure, very easy to use and is great value for money. Download now and start...
- Software downloads 2009-11-02
- Quick Batch File Compiler 3.2.2.0 (Windows)
- Quick Batch File Compiler convert your batch files into actual program (.EXE format) in one click. This program may be run on Windows 2000/2003/XP/Vista without any limitations. An .EXE file is much harder to casually reverse-engineer, so this could be a way to conceal a particular batch file's operations from...
- Software downloads 2009-10-31
- Software that automatically fixes itself, without shutting down
- Invariant DetectionThis is supposing that the software is simple enough to determine invariants and not block valid code paths that are infrequently used. It sounds a lot like applying design by contract after the fact.Software That Fixes Itself?The headline implies an application that fixes itself. The article describes and...
- Discussion threads 2009-10-29
- Logtalk 2.37.5 (Mac)
- Logtalk is an object-oriented logic programming language that can use most Prolog implementations as a back-end compiler. As a multi-paradigm language, Logtalk includes support for both prototypes and classes, protocols interfaces, component-based programming through category-based composition, event-driven programming, and high-level multi-threading programming.
- Software downloads 2009-10-29
- My 7 favorite Windows 7 features
- I must say ...... your impressive list, just isn't that impressive to me.#1 - Performance boost -- subjective#2 - More restrained UAC -- more duck tape#3 - 64-bit becomes the new default -- had 64 bit for years now#4 - Improved troubleshooting tools -- no comment, biting my tongue#5 -...
- Discussion threads 2009-10-22
- WinGDB 1.0 (Windows)
- WinGDB is an extension for Visual Studio IDE allowing to debug processes on remote machines running Linux or other Unix systems or local machines built with use of MinGW tools, using native Visual Studio debugging user interface. Features: An Add-In for the Visual Studio IDE providing integration with the VS...
- Software downloads 2009-10-22
- Silverfrost FTN95 5.4 (Windows)
- With Silverfrost FTN95 you can create console based, conventional Windows and Microsoft .NET applications. Silverfrost FTN95 is the only compiler that can produce Microsoft .NET applications that can use the full Fortran 95 language. Silverfrost FTN95 also boasts its world leading Checkmate run. Salford FTN95 can now be used free...
- Software downloads 2009-10-21
- Google Web Toolkit 1.7.1 (Mac)
- Google Web Toolkit GWT is an open source Java software development framework that makes writing AJAX applications like Google Maps and Gmail easy for developers who don't speak browser quirks as a second language. Writing dynamic web applications today is a tedious and error-prone process; you spend 90% of your...
- Software downloads 2009-10-20
- Testers to get Visual Studio 2010 Beta 2 this week; final by March 2010
- Side-by-side installationYou said "Also unlike its predecessors, .Net 4 can be installed side-by-side with the previously released .Net 3.5"Notwithstanding the fact that .Net 4's predecessors actually was .Net 3.5, haven't all previous versions of .Net featured side-by-side installation?translations....[i]Microsoft is touting .Net 4 as being 81 percent smaller than its predecessors,...
- Discussion threads 2009-10-19
- X-Chat 2 2.8.6-2 (Windows)
- This is an unofficial open-source GPL X-Chat UNIX IRC client build for Windows, compiled on Windows XP SP2 with Microsoft Visual Studio .NET 2003 Enterprise Architect C/C++ compiler.X-Chat has two good features of usability: colored nicknames and alignment by text as opposed to alignment by nicks. When you read text,...
- Software downloads 2009-10-16
- New Adobe PDF flaw under attack; Patch coming Tuesday
- Note to all Knuckleheads....The vulnerability affects Adobe Reader and Acrobat 9.1.3 and earlier versions on Windows, Macintosh and UNIXWhy announce at all? Just fix the thingI'm getting really tired of any company that gives the ostensibly obligatory "We're on that!" and then it's some time before the fix comes. These...
- Discussion threads 2009-10-09
- The troubling thoughts re: outsourcing
- Watch this space for future problems! There’s a lot going on in the outsourcing world lately. Things like: - Perot Data Systems being acquired by Dell - ACS getting bought by Xerox Add to these deals,...
- Blog posts 2009-10-05
- PLT Scheme 4.2.2 (Mac)
- PLT Scheme is an innovative programming language that builds on a rich academic and practical tradition. It is suitable for implementation tasks ranging from scripting to application development, including GUIs, web services, etc. It includes the DrScheme programming environment, a virtual machine with a just-in-time compiler, tools for creating stand-alone...
- Software downloads 2009-10-04
- ResEdit 1.4.8 (Windows)
- ResEdit is a Resource Editor for Win32 programs. You can use it if you want to use dialogs, icon, version information or other types of resources. Output files can be compiled by any Win32 compiler, like MinGW and Microsoft Visual C++.
- Software downloads 2009-10-04
- Pacu 1.0 (Mac)
- Pacu is the lightweight source code editor. It provides a deeply integrated video terminal emulation, which accelerates command line driven workflows by detecting compiler and log messages. The user interface is the least intrusive possible. All functions are fully keyboard accessible and have been designed to fit on small screens...
- Software downloads 2009-09-25
- Logtalk 2.37.4 (Windows)
- Logtalk is an object-oriented logic programming language that can use most Prolog implementations as a back-end compiler. As a multi-paradigm language, Logtalk includes support for both prototypes and classes, protocols interfaces, component-based programming through category-based composition, event-driven programming, and high-level multi-threading programming.
- Software downloads 2009-09-24
- Inno Setup Compiler 5.3.5 (Windows)
- Inno Setup is a free, feature-packed installation builder. The application's features include a Windows 2000-style wizard interface; the ability to create a single EXE for easy online distribution; support for disk spanning; and full uninstall capabilities. The program also includes customizable setup types, integrated LZMA file compression, support for installing...
- Software downloads 2009-09-23
- XBinder 2.0 (Windows)
- The complexity of producing well constructed, reliable class libraries from XML schema can challenge any project's timeline and staff productivity. The XBinder XML to C / C++ / Java / C# data binding tool substantially streamlines and simplifies a project's development and maintenance time by automatically serializing objects into XML...
- Software downloads 2009-09-22
Neighboring Terms
Premier Vendor Content Whitepapers, webcasts & resources from our Power Center Sponsors
SmartPlanet
- Thought-provoking progressive ideas on diverse topics that intersect with technology, business, and life, and matter to the world at large. Visit SmartPlanet
- More from IBM
- How to Drive Better Business Outcomes with Exceptional Web Experiences Download the eBook
- Driving Business Agility through SOA Connectivity & Integration Read the White Paper from IBM
- Linking Decisions and Information for Organizational Performance Read the Tom Davenport study




