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

  • SEARCH
  • Home
  • 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 6752877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:05:45+00:00 2026-05-26T13:05:45+00:00

So all I’ve ever programmed in so far is C++, and I commonly see

  • 0

So all I’ve ever programmed in so far is C++, and I commonly see people mention that the reason C++ is fast is because it’s so similar to machine code. I’m wondering what exactly machine/C++ code architecture is, why being similar makes it faster, and how it compares to other architectures such as C#.

I understand RAII, the heap, stack, and syntax but this is about it. I don’t even have that good of an understanding of what a computer is made up of other than CPU, RAM, and hard drive. I’m planning on starting to learn C# soon for WP7 app development soon, so I assume a deeper understanding of what’s going on under the hood would help me identify the differences/similarities between the languages.

Diagrams or pointers to articles on the subject would be great!

  • 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-05-26T13:05:45+00:00Added an answer on May 26, 2026 at 1:05 pm

    The stuff that makes C++, C++, is not really similar to any machine architecture. It’s the C subset that’s similar. Variable assignments, function calls, loops, array traversal, and comparisons all tend to map to a small set of fast, core instructions. Assignments to primitives or to array elements are generally a single instruction on modern processors: an instruction that moves a value from memory to a register, or vice-versa (for example.) Folks who have been programming in C a long time can literally see the machine code their compiler will generate. The key thing is “what you see is what you get” — the language instructions translate directly into machine code, more or less one-to-one.

    On the other hand, “higher-level” languages like C# (or Java, Ruby, Python, Perl, Haskell, Scheme, etc) have a more or less substantial underlying runtime support system. For some languages, that means an assignment might involve looking something up in a table first; for others, it might mean that an assignment is a simple copy sometimes, or a complex data manipulation other times, depending on what sort of data it is. It’s much harder to predict how your statements will be translated into machine code.

    C++ is in an interesting middle ground: some assignments are just like C assigments; other are actually overloaded calls to operator=(), and you’re never quite sure what you’re going to get (without close study, of course.) C++ does have a runtime system; it’s just a lot lighter weight than the one for Ruby or Haskell or Scheme.

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

Sidebar

Related Questions

All, I have just reinstalled Java on my machine because I found I had
All too often I want a WPF slider that behaves like the System.Windows.Forms.TrackBar of
All, I currently have two projects that are under SourceSafe that I am unable
All the guys probably will recommend that I read the follow previously question in
All, See the code below: function menu() { this.menuitem=[]; this.submenu=[]; this.menuitem[0] = $('div#sivname1'); this.menuitem[1]
All, I have some script tags that are not working in Wordpress. If I
All programs that I develop utilize the default Windows Design template: Besides from changing
All, I have a stored procedure on SQL Server 2005 that accepts an XML
All, There is a website that doesn't seem legitimate that and keeps showing all
All, I have the following class so to check to see if the form

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.