473,386 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

VB.NET Common Language Runtime questions



Some things i do not understand about CLR if any one could clear this
up i would appreciate it.
1. When I compile a program in VB .NET 2003 and get an executable, does
that executable contain native code or Intermediate Language?

2. Is there somewhere a choice in VB .NET 2003 between compiling to
native code or to Intermediate Language?

3. Do ALL WIndows computers come with CLR? If not, and I give a user
an exe containing IL (if this is possible), how would a user go about
getting the CLR?

4. Do all Windows computers come with the Framework Class Libary? If
not, how would users obtain the FCL?
--
http://www.douglassdavis.com

Sep 28 '06 #1
8 2228
Some things i do not understand about CLR if any one could clear this
up i would appreciate it.
1. When I compile a program in VB .NET 2003 and get an executable, does
that executable contain native code or Intermediate Language?
It depends on how you compiled it. Normally, it would contain IL, and then
it is further compiled to native code when the assembly is used for the
first time. This usually results in a small startup delay for the first
caller of the assembly. If you wish to avoid this delay, you can use the
NGEN.exe tool to compile the assembly to native code pre-emptively.
2. Is there somewhere a choice in VB .NET 2003 between compiling to
native code or to Intermediate Language?
No, but as I indicated above, the external NGEN.exe tool can do native
compilations.
3. Do ALL WIndows computers come with CLR? If not, and I give a user
an exe containing IL (if this is possible), how would a user go about
getting the CLR?
Not yet. There are different versions of the CLR (because there are
different versions of the .NET Framework). For Windows XP, the .NET
Framework must be added via Windows Update. Windows Vista will have the .NET
Framework (and thus, the CLR) built in from the start.
>
4. Do all Windows computers come with the Framework Class Libary? If
not, how would users obtain the FCL?
See my answer to #3. The CLR and the FCL are both part of the larger .NET
Framework, you don't get the CLR and the FCL separately, if you have the
Framework, you've got everything you need to run .NET applications that were
written to run on the version of the Framework you have.
Sep 28 '06 #2
The CLR (Common Language Runtime Library) is a vital part of the Microsoft.
..Net platform, a massive set of class libaries that all .Net applications
make use of.
1. When I compile a program in VB .NET 2003 and get an executable, does
that executable contain native code or Intermediate Language?
Intermediate Language.
2. Is there somewhere a choice in VB .NET 2003 between compiling to
native code or to Intermediate Language?
No, but there are command-line tools that can do this, such as NGEN.EXE (see
http://msdn2.microsoft.com/en-us/library/6t9t5wcf.aspx)
3. Do ALL WIndows computers come with CLR? If not, and I give a user
an exe containing IL (if this is possible), how would a user go about
getting the CLR?
No. Only Windows XP and Windows Server 2003 come with the CLR. You can add
the .Net Platform redistributable to a setup/deployment project. In
addition, it is available for all Windows versions (starting with Windows
2000) via Windows Update.
4. Do all Windows computers come with the Framework Class Libary? If
not, how would users obtain the FCL?
See my introduction. The Framework comes with the CLR. They are not separate
installations.

--
HTH,

Kevin Spencer
Microsoft MVP
Software Composer
http://unclechutney.blogspot.com

A watched clock never boils.

<do************@earthlink.netwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
>

Some things i do not understand about CLR if any one could clear this
up i would appreciate it.
1. When I compile a program in VB .NET 2003 and get an executable, does
that executable contain native code or Intermediate Language?

2. Is there somewhere a choice in VB .NET 2003 between compiling to
native code or to Intermediate Language?

3. Do ALL WIndows computers come with CLR? If not, and I give a user
an exe containing IL (if this is possible), how would a user go about
getting the CLR?

4. Do all Windows computers come with the Framework Class Libary? If
not, how would users obtain the FCL?
--
http://www.douglassdavis.com

Sep 28 '06 #3

Scott M. wrote:
Some things i do not understand about CLR if any one could clear this
up i would appreciate it.
1. When I compile a program in VB .NET 2003 and get an executable, does
that executable contain native code or Intermediate Language?

It depends on how you compiled it. Normally, it would contain IL, and then
it is further compiled to native code when the assembly is used for the
first time. This usually results in a small startup delay for the first
caller of the assembly. If you wish to avoid this delay, you can use the
NGEN.exe tool to compile the assembly to native code pre-emptively.
2. Is there somewhere a choice in VB .NET 2003 between compiling to
native code or to Intermediate Language?

No, but as I indicated above, the external NGEN.exe tool can do native
compilations.
3. Do ALL WIndows computers come with CLR? If not, and I give a user
an exe containing IL (if this is possible), how would a user go about
getting the CLR?

Not yet. There are different versions of the CLR (because there are
different versions of the .NET Framework). For Windows XP, the .NET
Framework must be added via Windows Update. Windows Vista will have the .NET
Framework (and thus, the CLR) built in from the start.

4. Do all Windows computers come with the Framework Class Libary? If
not, how would users obtain the FCL?

See my answer to #3. The CLR and the FCL are both part of the larger .NET
Framework, you don't get the CLR and the FCL separately, if you have the
Framework, you've got everything you need to run .NET applications that were
written to run on the version of the Framework you have.
Okay, thanks for the answers... So, it only has to be compiled to
native code once? So then is there some directory where this compiled
code resides?

Sep 29 '06 #4
I believe the native code is loaded dynamically. The JIT process to native
code will occur for the first caller, each time the application starts. To
create the file permanently and avoid the JIT, use NGEN.exe.
<do************@earthlink.netwrote in message
news:11**********************@c28g2000cwb.googlegr oups.com...
>
Scott M. wrote:
Some things i do not understand about CLR if any one could clear this
up i would appreciate it.
1. When I compile a program in VB .NET 2003 and get an executable, does
that executable contain native code or Intermediate Language?

It depends on how you compiled it. Normally, it would contain IL, and
then
it is further compiled to native code when the assembly is used for the
first time. This usually results in a small startup delay for the first
caller of the assembly. If you wish to avoid this delay, you can use the
NGEN.exe tool to compile the assembly to native code pre-emptively.
2. Is there somewhere a choice in VB .NET 2003 between compiling to
native code or to Intermediate Language?

No, but as I indicated above, the external NGEN.exe tool can do native
compilations.
3. Do ALL WIndows computers come with CLR? If not, and I give a user
an exe containing IL (if this is possible), how would a user go about
getting the CLR?

Not yet. There are different versions of the CLR (because there are
different versions of the .NET Framework). For Windows XP, the .NET
Framework must be added via Windows Update. Windows Vista will have the
.NET
Framework (and thus, the CLR) built in from the start.
>
4. Do all Windows computers come with the Framework Class Libary? If
not, how would users obtain the FCL?

See my answer to #3. The CLR and the FCL are both part of the larger
.NET
Framework, you don't get the CLR and the FCL separately, if you have the
Framework, you've got everything you need to run .NET applications that
were
written to run on the version of the Framework you have.

Okay, thanks for the answers... So, it only has to be compiled to
native code once? So then is there some directory where this compiled
code resides?

Sep 29 '06 #5

Scott M. wrote:
I believe the native code is loaded dynamically. The JIT process to native
code will occur for the first caller, each time the application starts. To
create the file permanently and avoid the JIT, use NGEN.exe.

okay. interesting.

Sep 29 '06 #6
Douglass,

Net is an extra layer on the OS. It contains one let say runtime, but it is
not a kind of runtime like we are used to. It is for all language that uses
the Net Managed code. However there is needed for every OS its own Net layer
(called framework).

One of to things you probably think direct about is that it is not so clever
to use OS API's in your programs, yes that is true.

Be aware that native code is seldom faster than code runned by a runtime (on
micro computers), while they will probably never be as small as an Net
assembly (other word for EXE or DLL, which is not a dynamic library)

Cor

<do************@earthlink.netschreef in bericht
news:11**********************@i3g2000cwc.googlegro ups.com...
>

Some things i do not understand about CLR if any one could clear this
up i would appreciate it.
1. When I compile a program in VB .NET 2003 and get an executable, does
that executable contain native code or Intermediate Language?

2. Is there somewhere a choice in VB .NET 2003 between compiling to
native code or to Intermediate Language?

3. Do ALL WIndows computers come with CLR? If not, and I give a user
an exe containing IL (if this is possible), how would a user go about
getting the CLR?

4. Do all Windows computers come with the Framework Class Libary? If
not, how would users obtain the FCL?
--
http://www.douglassdavis.com

Sep 29 '06 #7
do************@earthlink.net wrote:
Scott M. wrote:
>I believe the native code is loaded dynamically. The JIT process to native
code will occur for the first caller, each time the application starts. To
create the file permanently and avoid the JIT, use NGEN.exe.


okay. interesting.
Note, though, that if you use NGEN to create the native code, you lose
the benefits that the JIT brings. The code will be compiled to run on
any possible processor, and not optimized for the specific processor
that it will be run on.
Oct 15 '06 #8
do************@earthlink.net wrote:
Scott M. wrote:
>I believe the native code is loaded dynamically. The JIT process to native
code will occur for the first caller, each time the application starts. To
create the file permanently and avoid the JIT, use NGEN.exe.


okay. interesting.
Note, though, that if you use NGEN to create the native code, you lose
the benefits that the JIT brings. The code will be compiled to run on
any possible processor, and not optimized for the specific processor
that it will be run on.
Oct 15 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: smjmitchell | last post by:
Hi All, I am using the common dialog color pallete and open forms in VB6.0. I have two questions: 1. How can the position of these forms on the screen be specified when they are loaded. By...
0
by: Candi Suriano | last post by:
Help! I have a VB.Net dll that must be exposed to COM. The VB.Net program calls a C++ With managed extensions dll. When I try to reference the VB.Net dll from another VB.net program I get the...
1
by: Sathiamoorthy | last post by:
I received a runtime error when I was working in MyApp.exe MyApp.exe Common Language Runtime Debugging Services Application has generated an exception that could not be handled. Process ID=0x14...
22
by: larry | last post by:
I was just looking at a demo training that mindleaders has on .net training: http://www.mindleaders.com/products/democourse3.asp And I don't believe this is correct or at least is misleading...
5
by: Sahil Malik [MVP] | last post by:
Okay I installed the LINQ preview on Beta2, and anything I write gives me this error now. The documentation over here - http://msdn.microsoft.com/vs2005/currentreadme/default.aspx aptly tells...
1
by: paul | last post by:
I have a Windows vb.net app that creates an Object from a .net dll that I wrote. If the dll fails to achieve its task I get it the re-throw an exception. the windows app encapulates the object...
1
by: mj | last post by:
When I'm trying to run any asp.net application, the following error appears: "CS0007: Unexpected common language runtime initialization error --Catastrophic failure" I've reinstalled .NET...
2
by: drosophila1903 | last post by:
hello all, I have a problem with an application I have created. I built a program in vb.net and created a setup file for that. the program runs successfuly in my computer. however when I run the...
0
by: =?Utf-8?B?UkJlbGw=?= | last post by:
I have a VB .NET app that I've been working on for quite some time. The app has been working fine with no problems. I have recently been charged with Internationalizing the app. Since I have never...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.