(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
- Jitbit Macro Recorder Lite 4.51 (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-20
- MSI Factory 2.1.1009.0 (Windows)
- MSI Factory is the first visual setup builder to fully leverage Microsoft's next generation Windows Installer XML WiX compiler technology for creating 100% pure MSI format installer packages in a faster and more intuitive way. What makes MSI Factory different is our unique file-centered design view. Software developers aren't forced...
- Software downloads 2009-11-20
- Do we need a 'beautiful mess' in operating systems? Yup
- To make a good soup, you've got to stir the pot...Ok, sure - it turns cloudy, short-term. Just be sure to filter it or let it settle, before serving.Whereas the classic 'design-by-committee' model so often fails, its always useful to have multiple, talented teams working on similar projects, independently. With...
- Discussion threads 2009-11-19
- install4j 4.2.5 (Windows)
- install4j is a cross platform Java installer that produces native launchers and installers for all major platforms. Install4j offers an intuitive GUI that makes it easy to quickly define installation projects. A command line compiler and integration for Apache ANT are included.
- Software downloads 2009-11-18
- Inno Setup Compiler 5.3.6 (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-11-15
- Logtalk 2.37.5 (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-11-09
- 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
- Batch File Compiler Professional Edition 4.53 (Windows)
- 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, and protect your code with encryption. Perfect for installations and makes your batch file tamperproof.
- Software downloads 2009-11-05
- 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
Neighboring Terms
Premier Vendor Content Whitepapers, webcasts & resources from our Power Center Sponsors
- Reduce risk. Reduce complexity. Increase reliability.
-
A simplified IT environment isn't just less complex. It's also more reliable. Standardize on a single Linux platform with SUSE Linux Enterprise from Novell, and get the world's most interoperable Linux
- Learn more >>
- New Online Dashboard for IT Leaders
-
Read about top issues IT decision-makers face every day, plus get cost-effective solutions to real-life IT problems.
- Learn more >>
- Keep Up With The Latest In Document Management with The DocuMentor.
-
> Doc delivers the scoop on today's enterprise content management, printer maintenance, and all other issues related to document management. It's the DocuMentor Blog.
- Learn more >>
- The best support in the Linux business
-
If Linux is going to power your mission-critical applications, you'd better have the best support known to business. Novell was rated the top provider of Linux technical support.
- Learn more >>
Meet Doc
-
Here to help you with your Document Management Needs
- Doc is an enigma. Born to a Russian ballerina and a German electrical engineer, he grew up in various locations in the United States. He’s seen the insides of more brands, versions, and generations of printer and printer-related hardware than almost anyone.
- To learn more about this mysterious figure check out his blog on ZDNet and his Workspace on TechRepublic. You’ll be glad you did.
-
Produced by
ZDNet and







