Jump to content

VB Compiled or Interpreted?


Pangloss

Recommended Posts

.NET applications can be compiled ahead of time to native code, although they'll still need the .NET runtime

 

They're not really native machine code then are they? What do you suppose you'd get if you run such a compiled application through an x86 disassembler? I suspect it wouldn't be x86 instructions since it needs a runtime engine to execute.

Link to comment
Share on other sites

They're not really native machine code then are they? What do you suppose you'd get if you run such a compiled application through an x86 disassembler? I suspect it wouldn't be x86 instructions since it needs a runtime engine to execute.

 

The instructions (in files that .NET developers have elected to compile ahead of time to native code) are in fact machine code, and the file format is just an extended form of the PE ".EXE" format used by most other ahead-of-time compiled executable code on Windows. However, it has special sections which require the .NET Common Language Runtime in order to function. Also the CIL bytecode is there in case you want to run the executable on a platform other than the one the developers elected to create native code for.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.