473,398 Members | 2,335 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,398 software developers and data experts.

Compiler that allows inline IL

As far as I know, csc does not support inline IL. I was wondering: is
there any C# compiler that allows inline IL????

Sep 9 '07 #1
3 1726
Probably not, as it would not be a C# compiler anymore. The C# language
specification doesn't have any mechanism to inline IL.

You can still code in IL if you want, and then compile it into a module,
along with your C# code, and then combine the modules into an assembly.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<az**********@gmail.comwrote in message
news:11*********************@d55g2000hsg.googlegro ups.com...
As far as I know, csc does not support inline IL. I was wondering: is
there any C# compiler that allows inline IL????
Sep 9 '07 #2
az**********@gmail.com wrote:
As far as I know, csc does not support inline IL. I was wondering: is
there any C# compiler that allows inline IL????
What is the point ?

Since optimization is not done in C#->IL but in IL->x86, then
there are no reason to believe it could be used for optimization
and you can not use IL to access various low level hardware
features.

Arne
Sep 9 '07 #3
Arne Vajhøj <ar**@vajhoej.dkwrote:
az**********@gmail.com wrote:
As far as I know, csc does not support inline IL. I was wondering: is
there any C# compiler that allows inline IL????
What is the point ?

Since optimization is not done in C#->IL but in IL->x86, then
there are no reason to believe it could be used for optimization
and you can not use IL to access various low level hardware
features.
There are a few cases where hand-tweaking the IL would allow for
further optimisation (which *does* have an effect). It's rare, but it
could very occasionally be useful.

There are also some features which IL allows for but C# doesn't
(covariance/contravariance of generics in interfaces, for example).

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Sep 9 '07 #4

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

Similar topics

13
by: Bryan Parkoff | last post by:
You may notice that switch (...) is much faster than function that can gain a big improved performance because it only use JMP instruction however function is required to use CALL, PUSH, and POP...
13
by: Andrew | last post by:
I use conditional compiler constants, set through the VBA IDE in Tools, <projectname> Properties, that I refer to throughout my code to control which code is used during development, and which...
14
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...
3
by: Dave | last post by:
Hi everyone, Is it possible, using an Attribute or by some other means, to notify the C# Compiler to serialize all static field's that have initializers before code in an explicit static...
5
by: Ondrej Spanel | last post by:
I though that inline functions should be always visible only in the compilation unit where they are defined - meaning if compiler cannot inline them, they should be handled as if declared static....
2
by: Michael Stembera | last post by:
Here is a very simple piece of code to repro this bug. template<typename T, int N> inline bool foo( void ) { return true; } template<typename T> inline bool foo<T, 1>( void ) { return...
9
by: Olaf Baeyens | last post by:
I am trying to understand the IL assembler created by C# but as far as I can see, there is no optimizing done by the C# compiler. Optimizing is done by the JIT, but it can only go so far. In C++...
5
by: Ajay | last post by:
Hi all, I want to force that compiler take the function INLINE if i declare it inline.I know there is some macro to force the compiler to take the function as inline..but unfortunately i dont know...
87
by: H. | last post by:
I am a student taking a machine structures class in a university, which includes learning C. I am looking for a good freeware or shareware compiler which can be used in a "C only" mode. C++ isn't...
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: 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
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.