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

!generating ILAsm / compiler question

ajk
Hi

When doing a .NET compiler what are the benefits of generating ILAsm
directly compared to generating another higher level language like C#
first and then using the C# compiler?

Round-tripping will not work and debugging may be easier, any other
reasons why it would be prefered to generate ILAsm?

tia/ajk
Sep 16 '08 #1
1 1546
First, a few definitions. They are not necessarily important to the
question, but they are important to understand the process. The "language"
is IL, for Intermediate Language or MSIL for Microsoft Intermediate
Language. It is considered compiled, as it can be picked up by the CLR and
run without any further "outside" intervention. If it still required more
intervention from a user, it would only be translated.

The main reason someone builds a compiler rather than a translator is to
build running code. Technically, you could build a translator and then fire
off a compiler, but you then have to trust the other compiler. If you write
in C#, C++ or VB, you will find the compilers are each better at something
different. They are functionally equivalent, but not exactly equal in their
IL output.

As a software developer, you would prefer something where you have left your
destiny under your own control, rather than partially under your control and
partially under the control of another piece of software. This is if your
goal is compilation. You also prefer the least number of moving parts, as
more moving parts means more potential points of failure.

There is certainly value in translating one high level language to another.
It is completely different from compiling.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://feeds.feedburner.com/GregoryBeamer#

or just read it:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think outside the box! |
********************************************
"ajk" <an******@gmail.comwrote in message
news:65**********************************@s28g2000 prd.googlegroups.com...
Hi

When doing a .NET compiler what are the benefits of generating ILAsm
directly compared to generating another higher level language like C#
first and then using the C# compiler?

Round-tripping will not work and debugging may be easier, any other
reasons why it would be prefered to generate ILAsm?

tia/ajk
Sep 16 '08 #2

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

Similar topics

0
by: Markus | last post by:
Hello I am trying to compile a vb file which uses a porition of a namespace in it's Imports directives. This does not seem to work. I get the following error error BC30466: Namespace or type...
7
by: Noone | last post by:
I'm not new to programming, but I am fairly new to C++. I've got a bit of a problem with a project that I am working on. My environment is as follows: OS: Mandrake 10 IDE: Anjuta Compiler: gnu...
3
by: ibm | last post by:
Is there a preprocessor directive or other means whereby you can get the compiler ( for some reasonable set of compilers ) to print a user defined comment then continue at compile time when it...
3
by: Bill | last post by:
I am confused why I must cast an enum to a type int if I defined the enum as follows: enum COLUMNS :int { IP=0, MSG =1 } IMHO the compiler should be able to make the conversion without...
3
by: kaizen | last post by:
Hi, we have the C/C++ code compiled in 16-bit compiler under DOS. assume it as library. This library should be used to write code in VC++ and should be compiled in 32-bit compiler under...
1
by: v000 | last post by:
Hi, I'm trying to achieve the following: typedef VOID (WINAPI *FILEIOCOMPLETIONROUTINE)(DWORD dwErrorCode, HANDLE...
7
by: key9 | last post by:
Hi all I think .h file offord a "catalog" of symbols and .cpp offord implements but I have no idea why I got such an complier error virtual_screen.h:15: error: expected initializer before...
5
by: Nathan | last post by:
What is the best compiler to use regarding C++?? -- --------------------------------- --- -- - Posted with NewsLeecher v3.9 Beta 8 Web @ http://www.newsleecher.com/?usenet...
12
by: curls8 | last post by:
I am starting to get back into C++ Programming. I am a beginner. Can someone let me know what type of compiler is the best. Is it worth it to buy one or are the free ones good enough. Please list...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...
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.