473,770 Members | 2,519 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Optimization of framework SDK vs. VS 2005

Greetings,

I have a question. The framework SDK ships with a CS/VB.NET compiler. Does
the Visual Studio 2005 IDE use these compilers or does the IDE have its own?
This has me thinking. Becuase the Express IDE supposedly doesn't optimize
the compiled output as much as the professional IDE does. If that's so,
then it sounds like their are two different compilers happening here. In
short, if I want to establish a build server (that does not have the IDE
installed only the Framework SDK) then will I get the same optimizations as
when we build from the IDE?
Thanks,
Shawn
Jan 24 '07 #1
7 1455
The compilers should be the same, but it could be the versions of the
IDE are sending different command line parameters to the csc.exe or
vbc.exe programs.

On Jan 24, 1:39 pm, "Shawn B." <lea...@html.co mwrote:
Greetings,

I have a question. The framework SDK ships with a CS/VB.NET compiler. Does
the Visual Studio 2005 IDE use these compilers or does the IDE have its own?
This has me thinking. Becuase the Express IDE supposedly doesn't optimize
the compiled output as much as the professional IDE does. If that's so,
then it sounds like their are two different compilers happening here. In
short, if I want to establish a build server (that does not have the IDE
installed only the Framework SDK) then will I get the same optimizations as
when we build from the IDE?

Thanks,
Shawn
Jan 24 '07 #2
Shawn B. wrote:
I have a question. The framework SDK ships with a CS/VB.NET compiler. Does
the Visual Studio 2005 IDE use these compilers or does the IDE have its own?
This has me thinking. Becuase the Express IDE supposedly doesn't optimize
the compiled output as much as the professional IDE does.
This isn't true. 'csc -optimize+' is about the full extent of
optimization afforded by csc, and is used by the IDE.

Almost all optimization occurs at runtime.
If that's so,
then it sounds like their are two different compilers happening here. In
short, if I want to establish a build server (that does not have the IDE
installed only the Framework SDK) then will I get the same optimizations as
when we build from the IDE?
To just do a build, often only the .NET framework is needed - not even
SDK - depending on what you use. MSBuild, csc, etc. are all part of the
framework, not SDK.

-- Barry

--
http://barrkel.blogspot.com/
Jan 25 '07 #3
This isn't true. 'csc -optimize+' is about the full extent of
optimization afforded by csc, and is used by the IDE.
Then why do they talk about the "Pro" version producing better optimized
code than the Express edition?
Thanks,
Shawn
Jan 26 '07 #4
"Shawn B." <le****@html.co mwrote in message news:ud******** ******@TK2MSFTN GP02.phx.gbl...
>This isn't true. 'csc -optimize+' is about the full extent of
optimization afforded by csc, and is used by the IDE.

Then why do they talk about the "Pro" version producing better optimized code than the
Express edition?
Where did you read this? There is only one csc compiler (cscomp.dll and the compiler driver
csc.exe), and he's part of the Framework not part of VS.

Willy.

Jan 26 '07 #5
>>This isn't true. 'csc -optimize+' is about the full extent of
>>optimizatio n afforded by csc, and is used by the IDE.

Then why do they talk about the "Pro" version producing better optimized
code than the Express edition?

Where did you read this? There is only one csc compiler (cscomp.dll and
the compiler driver csc.exe), and he's part of the Framework not part of
VS.
Okay, you're right. I was confusing C# with the Visual C++ and CLI compiler
where *that* compiler does more optimizations with Pro than Express.

Thanks,
Shawn
Jan 26 '07 #6
Shawn B. wrote:
>This isn't true. 'csc -optimize+' is about the full extent of
optimization afforded by csc, and is used by the IDE.

Then why do they talk about the "Pro" version producing better optimized
code than the Express edition?
Where did you read this? There is only one csc compiler (cscomp.dll and
the compiler driver csc.exe), and he's part of the Framework not part of
VS.

Okay, you're right. I was confusing C# with the Visual C++ and CLI compiler
where *that* compiler does more optimizations with Pro than Express.
This mostly isn't true any more, BTW. There is no longer any (major)
difference between the C++ compilers:

http://msdn.microsoft.com/vstudio/express/support/faq/

"40. Does Visual C++ 2005 Express include the "optimizing compiler"?

Yes, Visual C++ 2005 Express Edition includes the same core optimizing
compiler that will be included with all other Visual Studio 2005
editions. Some new expanded optimization features, including Profile
Guided Optimizations, will be available only in the Professional and
above editions of Visual Studio 2005."

-- Barry

--
http://barrkel.blogspot.com/
Jan 26 '07 #7
This mostly isn't true any more, BTW. There is no longer any (major)
difference between the C++ compilers:

http://msdn.microsoft.com/vstudio/express/support/faq/

"40. Does Visual C++ 2005 Express include the "optimizing compiler"?

Yes, Visual C++ 2005 Express Edition includes the same core optimizing
compiler that will be included with all other Visual Studio 2005
editions. Some new expanded optimization features, including Profile
Guided Optimizations, will be available only in the Professional and
above editions of Visual Studio 2005."
Yes, that is where I got my change of understanding. PGO doesn't apply to
..NET anyway, its *currenty* a purely native implementation as I understand.
Whole program optimization I believe applies to .NET as well. In any case,
my only purposes for using Express IDE's is for XNA, otherwise I license the
Team edition and use it completely.
Thanks,
Shawn
Jan 26 '07 #8

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

Similar topics

3
3315
by: Nick L. | last post by:
All, This is a general question regarding how, and if, compiler optimization techniques affect the general concept of being able to update a component of an application without requiring a recompile of client code. For example, suppose I have component: common.dll which defines several constant values, say Const_A, Const_B and Const_C. Further say I have some client code in another component: client.dll which references common.dll and...
14
3146
by: joshc | last post by:
I'm writing some C to be used in an embedded environment and the code needs to be optimized. I have a question about optimizing compilers in general. I'm using GCC for the workstation and Diab compiler for the embedded target. My question is about how compilers optimize certain code sequences. As an example, take the code below. Will the compiler eliminate the actual function call to foo() in the object code generated and just store...
22
9968
by: NigelW | last post by:
This is really a question for the development team. Are there plans to improve the optimization of C# to MSIL? I ask this, as inspection with ILDASM of the MSIL code shows that, even with the optimization switch on, there is no inlining even of very short methods, common sub- expressions are evaulated each time used and constants used in loops are evaluated at each iteration. The following code, where I hand optimized the source, runs
3
4144
by: Dmitry Jouravlev | last post by:
Hi, I have a number of C++ solutions in Visual Studio .NET and when i compile them using "Whole Program Optimization", certain projects report a LNK1171 error saying that c2.dll could not be loaded. The error contains the correct path to c2.dll (and it is definately there). This only happens on some projects and only when "whole program optimization" option is turned on. If i turn off this option, the problem goes away. I have other...
3
2431
by: Peter Olcott | last post by:
What can anyone: (1) Tell Me about (2) Provide Links to (3) Recommend Books Pertaining to Memory Performance Optimization? The main thing that I am looking for is rules-of-thumb that maximize the execution speed of time critical applications.
3
1714
by: Thom Little | last post by:
I have ASP.NET websites deployed on a number of servers. Thee were developed with Visual Studio 2003. Is it true that Visual Studio 2005 only supports .NET Framework 2.0 and I will be required to have Visual Studio 2005 for those ASP.NET websites and Visual Studio 2003 for my currently deployed websites? Is there a summary document listing what is provided in Visual Studio 2005? Apparently there is support for .NET Framework 1 and 2,...
11
2225
by: xenophon | last post by:
I have a web site with forms authentication and a single logon page. I have 4 subdirectories, each that should be protected by a different username/password combination. For testing purposes, the username/password are hardcoded into the code-behind C# code. How can I write my web.config to make this happen? Thanks.
3
3596
by: Ted Ngo | last post by:
Hi All, My company want to buy the new Microsoft Visual Studio 2005 for their employees to develop our web application. After we develop the web application using the new Microsoft Visual Studio 2005 we will deloy it to the server, and right now on our server we only have .NET FrameWork 1.1. I just wonder do we have to upgrade our server to .NET Framework 2.0 or we can it leave at FramWork 1.1. Does Microsoft Visual Studio 2005 and...
0
1311
by: Adam Sandler | last post by:
Hello, Using VWD 2005 here... I've noticed I've got .NET services on my system here: the .NET Runtime Optimization service and ASP.NET State service. I've noticed when the ASP.NET State service starts, it stops the .NET Runtime Optimization service. Does anyone know why this happens? Also, if the State service clobbers the Optimization service then why is the Optimization service there in the first place? Thanks!
0
9592
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
9425
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
10230
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
9870
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7416
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
6678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
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
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.