Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8324267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:00:15+00:00 2026-06-09T00:00:15+00:00

Programming books sometimes point out that the CPU doesn’t understand the C++ language (or

  • 0

Programming books sometimes point out that the CPU doesn’t understand the C++ language (or any high level programming language). All the C++ statements must be translated into machine code before they can be executed. But who does the translation?

Oh, that’s no mystery, they say; the translation is done by the compiler—which itself is a computer program. But in that case, the computer is doing the translation.

This seems to me an insolvable paradox. The CPU (the “brain” at the heart of the computer) doesn’t understand a word of C++, yet it performs the translation between C++ and its own internal language. Isn’t that a contradiction?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:00:18+00:00Added an answer on June 9, 2026 at 12:00 am

    A large part of the answer is this: C++ source code (or any high level programming language) is stored in a text file, just as you might store an essay or a memo. But text characters are stored in numeric form. When the compiler works on this data, therefore, it’s doing another form of number crunching, evaluating data and making decisions according to precise rules.

    In case that doesn’t clear things up, imagine this: You have the task of reading letters from a person who knows Japanese but no English. You, meanwhile, know English but not one word of Japanese.

    But suppose you have an instruction book that tells you how to translate Japanese characters into their English-language equivalent.The instruction book itself is written in English, so you have no problem using it.

    So, even though you don’t understand Japanese, you’re able to translate all the Japanese you want, by carefully following instructions.

    That’s what a computer program is, really: an instruction book read by the CPU. A computer program is an inert thing—a sequence of instructions and data—yet the “knowledge” inside computer arises from its programs. Programs enable a computer to do all kinds of clever things—including translating a text file containing C++.

    A compiler, of course, is a very special program, but what it does is not at all strange or impossible. As a computer program, it’s an “instruction book,” as described. What it tells how to do is to read a text file containing C++ source code and output another instruction
    book: This output is your C++ program in executable form.

    The very first compilers had to be written in machine code. Later, old compilers could be used to write new compilers…so, through a bootstrap process, even skilled programmers could rely on writing machine code less and less.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Programming language books usually explain that value types are created on the stack, and
Are there any recommendations for books on threading and concurrent programming that are not
i have been programming for sometime but all of my programming books have not
Are there any advanced iPhone Programming Books? I don't want an introduction in Objective
While reading some programming books, I notice that the authors says that, in OOP,
There's a ton of books on Lego Mindstorms programming out there - not least
I'm just learning Objective-C/Cocoa programming for the Mac. All of the tutorials, books, blogs,
I'm looking for books or online resources that go in detail over programming techniques
I was reading some old game programming books and as some of you might
LATER EDIT: Please mention not only game programming books, but also more scientific/simulation oriented

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.