A
Anders S. Willumsen
I'm sorry - but I need some help understanding what's going on in the
framework when it comes to IL and executable.
Consider this simple code:
Imports System
public class test
public shared sub Main()
Console.WriteLine("test")
End sub
End class
When saved as demo.vb it can be compiled with vbc.exe like this:
Vbc demo.vb
And this generates demo.exe. I know that demo.exe do not contains executable
code - it contains CIL and metadata.
And now the questions begins.
When executing vb.exe what really happens? (1). As I understand it CLR
compiles CIL to something executable - but where is the file (2). Will
demo.exe remain unchanged? (3) What is the file (vbdemo.exe containing IL)
called - PE file or assembly? (4)
If demo.exe contains IL and metadata can it be moved to another platform
(rotor/mono) unchanged because the IL compiler on this platform understands
the information in demo.exe? (5)
How does ilasm fit in to all this - as I understand it, ilasm compiles
IL/meta to an executable. Does that mean that you can use ilasm to
precompile an assembly file? (6)
I'm sorry about the many questions - but I need some help understanding
this. Can anyone help me - or guide me to some information about it?
Thanks,
Anders
framework when it comes to IL and executable.
Consider this simple code:
Imports System
public class test
public shared sub Main()
Console.WriteLine("test")
End sub
End class
When saved as demo.vb it can be compiled with vbc.exe like this:
Vbc demo.vb
And this generates demo.exe. I know that demo.exe do not contains executable
code - it contains CIL and metadata.
And now the questions begins.
When executing vb.exe what really happens? (1). As I understand it CLR
compiles CIL to something executable - but where is the file (2). Will
demo.exe remain unchanged? (3) What is the file (vbdemo.exe containing IL)
called - PE file or assembly? (4)
If demo.exe contains IL and metadata can it be moved to another platform
(rotor/mono) unchanged because the IL compiler on this platform understands
the information in demo.exe? (5)
How does ilasm fit in to all this - as I understand it, ilasm compiles
IL/meta to an executable. Does that mean that you can use ilasm to
precompile an assembly file? (6)
I'm sorry about the many questions - but I need some help understanding
this. Can anyone help me - or guide me to some information about it?
Thanks,
Anders