473,946 Members | 16,896 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1118
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
14987
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 software giant such as Microsoft SQL Server, Oracle, and Sybase? Is PostgreSQL reliable enough to be used for high-end commercial application? Thanks
6
6230
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 2004 MX it tells me that 'min-width' is not supported in IE 5.0-6. Is this true? Does anyone have or know a better css layout generator, that works great across browsers and looks good in the Macromedia Dreamweaver 2004 MX designer so 'what I see...
2
1333
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 interested in standards adherance, debugging support, and fast code, plus I'm somewhat price-conscious. I'd be developing for Windows, but would like to be able to build apps for Mac and possibly Linux without too much rework. Either I'm googling wrong,...
121
10302
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 support IDEs are DreamWeaver 8 and Zend PHP Studio. DreamWeaver provides full support for Unicode. However, DreamWeaver is a web editor rather than a PHP IDE. It only supports basic IntelliSense (or code completion) and doesn't have anything...
4
13631
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 then test for a NAN by comparing my float to itself (is this correct?), and I get different behaviour with different compilers. Have I done something that is undefined, or is this a compiler bug? Thanks,
1
2256
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: VC++7.0 project: elementary using console The error I get is: hello3 Command line error D2016 : '/RTC1' and '/clr' command-line
5
233
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 Visual C++ Help menu, or open the Technical Support help file for more information
1
1105
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
2066
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
10151
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9980
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11556
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11151
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8247
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6111
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6328
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4933
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.