473,385 Members | 1,764 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,385 software developers and data experts.

Compilar options or ngen.exe?

One thing that bugs me is whether to use the ngen tool or
to compile the code to run under certain processors,
using the compiler options G5, G6, ect...? Say i
deployed an app to a user running a pentium 4 on his
computer. I know that the ngen tool is used for start
up, but which would cause the app to start up faster,
ngen or the compilar options? Thanks!!
Jul 21 '05 #1
5 1438
Hi Ramon,

I don't think that Gx options have any effect on managed code (I assume you
are talking about managed code) since it is compiled always to MSIL.
Thus NGEN on target machine is the only way to speed up managed code.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"Ramon Guerrero" <ob************@hotmail.com> wrote in message
news:07****************************@phx.gbl...
One thing that bugs me is whether to use the ngen tool or
to compile the code to run under certain processors,
using the compiler options G5, G6, ect...? Say i
deployed an app to a user running a pentium 4 on his
computer. I know that the ngen tool is used for start
up, but which would cause the app to start up faster,
ngen or the compilar options? Thanks!!

Jul 21 '05 #2
-----Original Message-----
Hi Ramon,

I don't think that Gx options have any effect on managed code (I assume youare talking about managed code) since it is compiled always to MSIL.Thus NGEN on target machine is the only way to speed up managed code.
--
Miha Markic - RightHand .NET consulting & software developmentmiha at rthand com
www.rthand.com

"Ramon Guerrero" <ob************@hotmail.com> wrote in messagenews:07****************************@phx.gbl...
One thing that bugs me is whether to use the ngen tool or to compile the code to run under certain processors,
using the compiler options G5, G6, ect...? Say i
deployed an app to a user running a pentium 4 on his
computer. I know that the ngen tool is used for start
up, but which would cause the app to start up faster,
ngen or the compilar options? Thanks!!

.

Are you sure the Gx options have nothing to do with
managed code, because the default compilation option is
O2 (or O3 i can't rem). With that option set, it
combines many of the other options into one, which is the
default release build. You could either use this default
or custom make your own.
Jul 21 '05 #3
Are you sure the Gx options have nothing to do with
managed code, because the default compilation option is
O2 (or O3 i can't rem). With that option set, it
combines many of the other options into one, which is the
default release build. You could either use this default
or custom make your own.


I am pretty sure that there is no point optimizing MSIL for a processor (I
don't have much experience with C++ optimitzations though) as this is the
work for ngen or jit.
However, you might try different optimizing options and see if they make a
difference in msil.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com
Jul 21 '05 #4
The compiler options you are talking about is for VC++ native mode only,
managed code compilers have no such optimization flags as they produce MSIL
code that get's optimized by the JIT compiler.

Willy.

"Ramon Guerrero" <ob************@hotmail.com> wrote in message
news:06****************************@phx.gbl...
-----Original Message-----
Hi Ramon,

I don't think that Gx options have any effect on managed

code (I assume you
are talking about managed code) since it is compiled

always to MSIL.
Thus NGEN on target machine is the only way to speed up

managed code.

--
Miha Markic - RightHand .NET consulting & software

development
miha at rthand com
www.rthand.com

"Ramon Guerrero" <ob************@hotmail.com> wrote in

message
news:07****************************@phx.gbl...
One thing that bugs me is whether to use the ngen tool or to compile the code to run under certain processors,
using the compiler options G5, G6, ect...? Say i
deployed an app to a user running a pentium 4 on his
computer. I know that the ngen tool is used for start
up, but which would cause the app to start up faster,
ngen or the compilar options? Thanks!!

.

Are you sure the Gx options have nothing to do with
managed code, because the default compilation option is
O2 (or O3 i can't rem). With that option set, it
combines many of the other options into one, which is the
default release build. You could either use this default
or custom make your own.

Jul 21 '05 #5
-----Original Message-----
The compiler options you are talking about is for VC++ native mode only,managed code compilers have no such optimization flags as they produce MSILcode that get's optimized by the JIT compiler.

Willy.

"Ramon Guerrero" <ob************@hotmail.com> wrote in messagenews:06****************************@phx.gbl...
>-----Original Message-----
>Hi Ramon,
>
>I don't think that Gx options have any effect on managed
code (I assume you
>are talking about managed code) since it is compiled

always to MSIL.
>Thus NGEN on target machine is the only way to speed
up managed code.
>
>--
>Miha Markic - RightHand .NET consulting & software

development
>miha at rthand com
>www.rthand.com
>
>"Ramon Guerrero" <ob************@hotmail.com> wrote in

message
>news:07****************************@phx.gbl...
>> One thing that bugs me is whether to use the ngen
tool or
>> to compile the code to run under certain processors,
>> using the compiler options G5, G6, ect...? Say i
>> deployed an app to a user running a pentium 4 on his
>> computer. I know that the ngen tool is used for
start >> up, but which would cause the app to start up faster, >> ngen or the compilar options? Thanks!!
>
>
>.
>

Are you sure the Gx options have nothing to do with
managed code, because the default compilation option is
O2 (or O3 i can't rem). With that option set, it
combines many of the other options into one, which is

the default release build. You could either use this default or custom make your own.

.

Ok i understand. I thought the options affected managed
code too. Yeah I am a straight VC++ freak, sorry for not
mentioning that. I figured the options for VC++ were the
same with C# because of the managed extension tacked on
to VC++. I thought those were .NET features. Thanks a
lot for your help Miha and Willy!! Ramon
Jul 21 '05 #6

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

Similar topics

3
by: William Reyes | last post by:
I have a question regarding the use of ngen.exe and dedployment. I want to make sure I understand this correctly. If I create an app that has an .exe as well as a couple of .dll's. I can create...
2
by: Wol | last post by:
I have two assemblies, A.dll and B.dll. A.dll contains two methods. One method, UsesB, uses a type from B.dll whereas the other, DoesNotUseB, does not. To cache a native image of A.dll with...
2
by: JMMB | last post by:
Just a confirmation. NGen generates native code when i install the windows application on the client or when I run it for the first time? thanks,
1
by: fleimeris | last post by:
hello, i am preparing for 70-316 exam and i'm not quite sure about the answer to the following question. i want to use ngen.exe to boost the performance of my application. however, when should i...
3
by: Dinesh Jain | last post by:
Hi All, When we give a .NET exe to client, what comlier options we should change to give it as a Release Build? I know about setting the output as release build (Configuration Manager) but...
5
by: Ramon Guerrero | last post by:
One thing that bugs me is whether to use the ngen tool or to compile the code to run under certain processors, using the compiler options G5, G6, ect...? Say i deployed an app to a user running a...
1
by: Sameeksha | last post by:
Hi everyone, I have observed that the ngen process appears in the list of processes in taskmgr while .net framework 1.1 gets installed. This process consumes 0-50% of cpu and 0-20K of RAM. I...
2
by: whezker | last post by:
Hi everybody. I'm trying to use the ngen tool from framework 2.0, to accelerate the load runtime of my app. I'll explain here what I'm doing. First I copy&paste the ngen.exe to the Bin folder of...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.