(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-2008 The Computer Language Company Inc. All rights reserved. |
Additional Resources
- Microsoft steps up self-policing of its OSI-approved source licenses
- After pulling its "Sandcastle" documentation compiler from its CodePlex repository site for failure to comply with Open Source Initiative terms and conditions, Microsoft is ready to try releasing "Sandcastle" again under one of its OSI-approved licenses. by Mary Jo Foley
- Blog posts 2008-07-02
- How Linux app install leaves one PC expert befuddled
- Adrian, you dumb arse! At least that was my initial reaction when I read his "Linux's dirty little secret" column about his struggles with installing applications onto a Linux distro. It was either the Linux Geek rage originating from the knowing that he didn't Read the Fine...
- Blog posts 2008-07-02
- Linux's dirty little secret
- Linux's dirty little secretNice commercial! How much did it cost you?Strange, you publish it under the heading of "Dirty Little Secret"."Upload, design and build dynamic multimedia training courses. We charge a small fee to deliver the courses to the students online. For a few dollars per student, you...
- Discussion threads 2008-06-30
- Apple's Grand Central threat to Microsoft
- Apple's quiet preview of OS X.6 - Snow Leopard - promises ". . . unrivaled support for multi-core processors . . . " through a "new set of technologies" named Grand Central. What makes Grand Central so powerful - and how can Microsoft respond? Fresh from Google's...
- Blog posts 2008-06-16
- From Chapter one: Data Processing and the IBM Mainframe
- From Chapter one: Data Processing and the IBM Mainframeumm, good pointI'll change it to electro-mechanical.Thanks!possible error?[i]It was the first successful system designed “from the ground up” to advance automated data processing by replacing the physical cards and associated electro-mechanical gear with purely digital processing and magnetic tape or disk storage,...
- Discussion threads 2008-06-13
- Snow Leopard to leave PowerPC users out in the cold?
- Snow Leopard to leave PowerPC users out in the cold?Well, every platform eventually comes to an endIt does not mean that because the developer tools are "Intel only" the environment will be unable to generate PowerPC binaries, e.g., the gcc compiler can emit binaries for all manner of CPU architectures.Apple...
- Discussion threads 2008-06-11
- Thinking about multicore and software
- Thinking about multicore and softwareThanks! NT:)RE: Thinking about multicore and softwarePaul,Provided a link to this blog on http://www.multicoreinfo.com , which is a website for resources related to multicore processors.Independent JobsIn the Enterprise, dual core makes sense for handling anti-virus, encryption, and other annoying security overhead functions. When you start...
- Discussion threads 2008-06-09
- Microsoft apologizes to Open Source Initiative for policy violation
- After outcry from various constituencies over the past couple of days, Microsoft has pulled from its CodePlex site its Sandcastle project for failure to comply with the terms and conditions required in order to be qualify as bona-fide open source. Sandcastle is a documentation compiler for managed...
- Blog posts 2008-06-06
- BIt: From Chapter one: Data Processing and the IBM Mainframe
- From Chapter one: Data Processing and the IBM Mainframe This is the 4th excerpt from the second book in the Defen series: BIT: Business Information Technology: Foundations, Infrastructure, and Culture Note that the section this is taken from, on the evolution of...
- Blog posts 2008-06-06
- GWT fireside chat
- I'm still wading through all the notes I took at the Google I/O 2008 conference last week. If you want to see pictures, check out my flickr photoset (183 photos). While I was there, I went to two sessions called "fireside chats". Although there was no fire...
- Blog posts 2008-06-05
- Patrick Brady dissects Android
- Patrick Brady of Google's partner group provided a detailed technical tour of the internals of the Android platform during his recent talk at Google I/O 2008 titled "Anatomy and Physiology of an Android". Topics included Linux kernel enhancements, the Bionic library (Google's slimmed down version of libc), Android functional and...
- Blog posts 2008-06-04
- OpenSUSE 11 RC1: The Mercedes-Benz to Ubuntu's Volkswagen
- 2008 will be a very good vintage for community end-user Linux distributions. So far, we've seen the release of Ubuntu 8.04, which is universally considered to be a major milestone release in usability and device compatibility, and one of the easiest distros to install. While not as widely lauded, we...
- Blog posts 2008-06-03
- The tattered history of OOP
- The tattered history of OOPCalling for Mom ..SOAP etc are not themselves messaging based, they're messaging protocols - i.e. message carriers that are not internally implemented using object messaging.OOP!Crieky, I had no idea OOP had been through so much! We're just about to start using Zend Framework PHP, I might...
- Discussion threads 2008-06-02
- The tattered history of OOP
- This is a guest blog by frequent contributor Mark Miller - a followup on our earlier discussions of the effectiveness and value of the object oriented programming idea. OOP has been a mixed bag, but I say this only because...
- Blog posts 2008-06-02
- eBooks Compiler (exe)
- Ebooks compiler creates high quality professional ebooks, reports, or interactive multi-media courses all in a matter of minutes using seven easy steps. Ebooks compiler will make electronic book publishing a breeze. You have complete control from design to marketing by creating an unlimited number of ebooks. This version is the...
- Software downloads 2008-05-28
- Put some IT pros in jail
- Put some IT pros in jailAgreed to the fullestWhen I described the WH email issue with a friend, I said flatly "I would have walked in and fired every person I laid eyes upon." There is NO excuse for that level of incompetence, none whatsoever!Too bad there aren't licenses we...
- Discussion threads 2008-05-27
- Adobe Flash zero-day exploit in the wild
- Adobe Flash zero-day exploit in the wildClarification[i]An attacker may exploit this issue to execute arbitrary code in the context of the affected application.[/i]IE7 running in Protected Mode the default in Vista runs with fewer privileges than the current user. Would the exploit run in this context? If so, this malware...
- Discussion threads 2008-05-27
- MSI Factory (exe)
- MSI Factory 2.0 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 2.0 different is our unique file-centered design view. Software developers...
- Software downloads 2008-05-20
- Flash Player 10 codename "Astro" goes beta
- We made available a prerelease version of the Flash Player last night which has a lot of new features. There isn't yet a tooling release we just posted a new Flex SDK that works to support the Flash Player beta so for the time being this is primarily so that...
- Blog posts 2008-05-15
- What's wrong at OpenSolaris
- What's wrong at OpenSolarisAgreed as to gaols etcHowever.. look at junknstuff's response above to see how the MS community has chosen to interpret what's going on.Now ask yourself: wouldn't everyone - especially Sun - have been better off if Sun had spent the money bringing Linux along instead of...
- Discussion threads 2008-05-15
Neighboring Terms
Premier Vendor Content Whitepapers, webcasts & resources from our Power Center Sponsors
- ZDNet News Videos
-
Tech news covering the latest in products, conferences and blog commentary, from ZDNet video.
- Watch the latest video >>
- New entries posted to Know Issues, Best Practices and Workarounds Wiki
-
Latest Topics: Running virtual machines and DHCP can cause Intel® AMT to be inaccessible; Wildcard certificates are currently not supported for remote; Dell 755 returns a duplicate UUID during activation configuration.
- See the latest entries on the Intel Wiki >>
- The Cisco Mobility Resource Center is your source for FREE mobility solutions
-
The Cisco Mobility Resource Center offers FREE videos, downloads, podcasts and more, all designed to help small and medium businesses get mobile connectivity solutions, improve productivity and drive sales and revenue.
- New mobility solutions at the Cisco Mobility Resource Center
The Green Enterprise
-
- A look into the enterprise to explore eco-friendly practices and innovations. In this ZDNet video series learn about what's motivating green tech, and how green technologies are impacting IT. 0:42
-
Harnessing the power of waves
3:13
-
Planting solar gardens
5:06
-
Fill your car for $1.10 a gallon?
1:43
- All series videos »




