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 1047905
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:22:25+00:00 2026-05-16T16:22:25+00:00

I’m trying to understand how these languages work under the hood. Unfortunately I only

  • 0

I’m trying to understand how these languages work under the hood. Unfortunately I only ever read very superficial things.
I’ll summarize what I know already, I would be really happy if you could correct me, and most of all, help me enhance my little bits of half-knowledge.

C++:

The C++ compiler preprocesses all source files. This means, that it actually inserts strings into the places where macros where originally. After that, it creates an .obj file for each source file containing machine independant bytecode.
The linker then links all external .obj files from libraries with the custom made .obj files together, and compiles it into an .exe.

Java:

Java code is compiled into machine independant “bytecode” which sits in .class files, which in turn can sit in .JAR files, which get run on the JRE. The virtual machine is just doing garbage cleanup then. Java code is compiled just-in-time like C#, but with hotspot optimization developed by SUN.

C#:

Practically the same as Java? C# source code gets compiled into CIL (Common Intermediate Language) code, which is still human readable. This code will be run by the CLR Just-in-Time. This compilation turns methods into machine specific code just when they are first called.

I’m actually interested in pretty much every language…but Java and C# are almost the same, and I always wondered how the differentiate. And C++ is the “classic” so to speak. The father of both without any kind of virtual machine. Appreciate the help!

edit: I know that this is a broad subject, but I really couldn’t find any solid knowledge. If you have links or books that explain this sort of thing I’m happy to go to work. I tried to read the SUN specifications/whitepapers for the java virtual machine, but that is all a little too deep for me right now.

  • 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-16T16:22:26+00:00Added an answer on May 16, 2026 at 4:22 pm

    The compilation of unmanaged C++ is very different from the compilation of managed C++, C# and Java.

    Unmanaged C++

    Unmanaged C++ (“traditional” C++) is compiled directly into machine code. The programmer invokes a compiler that targets a specific platform (processor and operating system), and the compiler outputs an executable that works only on that platform. The executable contains the machine code that the particular processor understands. When executed, the processor will directly execute the compiled code as is (modulo virtual memory address translation yadda yadda).

    Managed C++, C# and Java

    Managed code is compiled into an intermediate code (CIL in the case of .NET languages like C#, and Java bytecode in the case of Java). The compiler outputs an executable that contains code in this intermediate language. At this point, it is still platform-independent. When executed, a so-called Just-in-Time compiler will kick in, which translates the intermediate code into machine code just before executing. The processor will then execute the machine code generated by the JIT compiler. Most of the time, this machine code is kept in memory and discarded at the end of the program (so it has to run the JITting again the next time), but tools exist to do the JITting permanently.

    The benefit here of course is that the platform-independent executable can be run on any platform, but the downside is that you need an execution environment (including a JIT compiler) for that platform.

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post

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.