473,385 Members | 1,838 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.

What Compiler Options we need to choose ?


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 confused about enabling
JIT option. It is necessery to turn it on?
Please help,

Thanks in advance,

-Regards,
Dinesh

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
3 1096
Dinesh,

I'm not sure what you're asking. You don't have to set any compiler options
to have a release build. You just need to set the active configuration for
a release build.

Do you mean whether you should use NGen to pre-JIT the code? If you build
using a release configuration, the assembly is still compiled to MSIL. When
this is run on the target machine, it will be JIT compiled by the CLR to
native code and executed. If you want to have your assembly pre-jitted so
this doesn't have to be done every time, you can use NGen to do this on the
target machine. NGen will JIT the assembly and cache it, so that when the
assembly is executed, we retrieve the native code from the cache rather
than having to jit compile during execution.

I hope that helps. Let me know if you have further questions.

Thank you,

Keith Fink
Microsoft Developer Support
Visual Basic .NET
Nov 20 '05 #2

Hi Keith,
I mean say - do we need to set the configuration to Release build and
no other settings are required ?
As you said about Ngen utility, is it that when application is installed
on target machine, we have to call ngen.exe
from installation program before first time running the application?

Please help,

Thanks in advance,

-Regards,
Dinesh


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #3
Hi Dinesh,

See answers inline.

<<<Do we need to set the configuration to Release build and no other
settings are required?>>>

That is correct.

<<<As you said about Ngen utility, is it that when application is installed
on target machine, we have to call ngen.exe from installation program
before first time running the application?>>>

It all depends on what exactly you are trying to accomplish. You don't have
to use NGen at all. If your goal is to just build a release version, then
setting the active configuration to "Release" will do that. Your assembly
will be compiled to MSIL which can then be deployed and run on the target
machine.

If you want to pre-JIT the assembly so that its compiled to native code on
the target machine, you must run NGen on the target machine after deploying
the assembly to it.

Keith

Nov 20 '05 #4

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

Similar topics

125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
6
by: Dan V. | last post by:
I am using: http://www.csscreator.com/version2/pagelayout.php and choose HTML 4.01 transitional as I think this means it will be supported by more browsers. However in Macromedia Dreamweaver...
2
by: bweaver4usenet | last post by:
Please help me choose a compiler and environment for commercial software development in C++... Either a compiler I currently own, can upgrade to, or something else entirely. I'm primarily...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
4
by: Jonathan Fielder | last post by:
Hi, My program (below) casts a double (which is in range for a float) to a float. As far as I know this should give me the nearest representable float, which will loose some precision. I...
1
by: Aldi | last post by:
Hi, Thanks for the privious response on /clr option. Now that I have included /clr option another problem jumps up, and my books do not show anything about these problems: compiler: MS.net:...
5
by: mphanke | last post by:
Hi, just in case this is somewhat new: myfile.h(677): fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701) Please choose the Technical Support command on the...
1
by: glich via DotNetMonster.com | last post by:
How do I set compiler options in my IDE? My IDE is VC++ Standerd 6.0. thx! -- Message posted via http://www.dotnetmonster.com
4
by: kumar | last post by:
how can i identefy the pointer size means is taking 4 byte or 2 bytes , on what basis we can decide either on processor or register
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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,...

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.