473,398 Members | 2,113 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.

Writing in IL

This is going to sound really stupid... but I'm trying to learn IL better.
I've seen a book on writing code in IL. But lets say that I was a total IL
guru.. Where would I actually write the instructions? What type of project
would I create?

TIA,

Bill

--
Cordially,

W.G. Ryan
do********@comcast.nospam.net
www.devbuzz.com
www.knowdotnet.com
Jul 21 '05 #1
11 1491
Never mind, I just found it... Ilasm.exe
"William Ryan" <do********@nospam.comcast.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
This is going to sound really stupid... but I'm trying to learn IL better.
I've seen a book on writing code in IL. But lets say that I was a total IL guru.. Where would I actually write the instructions? What type of project would I create?

TIA,

Bill

--
Cordially,

W.G. Ryan
do********@comcast.nospam.net
www.devbuzz.com
www.knowdotnet.com

Jul 21 '05 #2
On 2003-11-05, William Ryan <do********@nospam.comcast.net> wrote:
This is going to sound really stupid... but I'm trying to learn IL better.
I've seen a book on writing code in IL. But lets say that I was a total IL
guru.. Where would I actually write the instructions? What type of project
would I create?

TIA,

Bill


Sorry, Bill I don't really know the answer to your question... I was
actually just wondering about the book? This is an area, I've been
meaning to look at for quite some time. In fact, I have a little
BASIC variant I would like to write a .NET compiler for, and I'm looking
into all the resources I can find :) So, what was it called?

--
Tom Shelton
MVP [Visual Basic]
Jul 21 '05 #3
http://www.amazon.com/exec/obidos/tg...lance&n=507846

I was tipped off to it by the guys at Wintellect so I knew it was worth
reading. I almost bought it friday but I couldn't figure out how I'd
actually compile the stuff. Other than that, it's a great book, and
understanding what's happening under the hood is definitely something that
can make you a stronger programmer....

HTH,

Bill
"Tom Shelton" <to*@mtogden.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
On 2003-11-05, William Ryan <do********@nospam.comcast.net> wrote:
This is going to sound really stupid... but I'm trying to learn IL better. I've seen a book on writing code in IL. But lets say that I was a total IL guru.. Where would I actually write the instructions? What type of project would I create?

TIA,

Bill


Sorry, Bill I don't really know the answer to your question... I was
actually just wondering about the book? This is an area, I've been
meaning to look at for quite some time. In fact, I have a little
BASIC variant I would like to write a .NET compiler for, and I'm looking
into all the resources I can find :) So, what was it called?

--
Tom Shelton
MVP [Visual Basic]

Jul 21 '05 #4
On 2003-11-05, William Ryan <do********@nospam.comcast.net> wrote:
http://www.amazon.com/exec/obidos/tg...lance&n=507846

I was tipped off to it by the guys at Wintellect so I knew it was worth
reading. I almost bought it friday but I couldn't figure out how I'd
actually compile the stuff. Other than that, it's a great book, and
understanding what's happening under the hood is definitely something that
can make you a stronger programmer....

HTH,

Bill


Thanks Bill. I appreciate the tip.

--
Tom Shelton
MVP [Visual Basic]
Jul 21 '05 #5
IF you want to write a compiler, check out John Gough's "Compiling for the
..NET CLR". It focuses on the CLR and IL but from a compiler writer's
aspect. Both books (Serge's too) are great :).
-mike
MVP

"Tom Shelton" <to*@mtogden.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
On 2003-11-05, William Ryan <do********@nospam.comcast.net> wrote:
This is going to sound really stupid... but I'm trying to learn IL better. I've seen a book on writing code in IL. But lets say that I was a total IL guru.. Where would I actually write the instructions? What type of project would I create?

TIA,

Bill


Sorry, Bill I don't really know the answer to your question... I was
actually just wondering about the book? This is an area, I've been
meaning to look at for quite some time. In fact, I have a little
BASIC variant I would like to write a .NET compiler for, and I'm looking
into all the resources I can find :) So, what was it called?

--
Tom Shelton
MVP [Visual Basic]

Jul 21 '05 #6
Tom,
I just picked up "The Common Language Infrastructure Annotated Standard" by
James S. Miller & Susann Ragsdale, from Addison Wesley. It covers the CLI
standard with annotations, including the CTS & CLS.

Included is the CIL instruction set (IL).

CLI = Common Language Infrastructure
CIL = Common Intermediate Language
CTS = Common Type System
CLS = Common Language Specification

So far it is a handy reference when you want to get lower into the .NET
runtime then C# or VB.NET exposes.

Hope this helps
Jay

"Tom Shelton" <to*@mtogden.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
On 2003-11-05, William Ryan <do********@nospam.comcast.net> wrote:
This is going to sound really stupid... but I'm trying to learn IL better. I've seen a book on writing code in IL. But lets say that I was a total IL guru.. Where would I actually write the instructions? What type of project would I create?

TIA,

Bill


Sorry, Bill I don't really know the answer to your question... I was
actually just wondering about the book? This is an area, I've been
meaning to look at for quite some time. In fact, I have a little
BASIC variant I would like to write a .NET compiler for, and I'm looking
into all the resources I can find :) So, what was it called?

--
Tom Shelton
MVP [Visual Basic]

Jul 21 '05 #7
Will do! Many thanks!
"Michael Giagnocavo [MVP]" <mg*******@Atrevido.net> wrote in message
news:uk**************@TK2MSFTNGP10.phx.gbl...
IF you want to write a compiler, check out John Gough's "Compiling for the
.NET CLR". It focuses on the CLR and IL but from a compiler writer's
aspect. Both books (Serge's too) are great :).
-mike
MVP

"Tom Shelton" <to*@mtogden.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
On 2003-11-05, William Ryan <do********@nospam.comcast.net> wrote:
This is going to sound really stupid... but I'm trying to learn IL better. I've seen a book on writing code in IL. But lets say that I was a
total
IL guru.. Where would I actually write the instructions? What type of project would I create?

TIA,

Bill


Sorry, Bill I don't really know the answer to your question... I was
actually just wondering about the book? This is an area, I've been
meaning to look at for quite some time. In fact, I have a little
BASIC variant I would like to write a .NET compiler for, and I'm looking
into all the resources I can find :) So, what was it called?

--
Tom Shelton
MVP [Visual Basic]


Jul 21 '05 #8
It does, I will definitely check it out. I guess I'm about to embark upon a
lot of learning, and I do appreciate the tip. Many Thanks,

Bill
"Jay B. Harlow [MVP - Outlook]" <Ja********@email.msn.com> wrote in message
news:OJ**************@tk2msftngp13.phx.gbl...
Tom,
I just picked up "The Common Language Infrastructure Annotated Standard" by James S. Miller & Susann Ragsdale, from Addison Wesley. It covers the CLI
standard with annotations, including the CTS & CLS.

Included is the CIL instruction set (IL).

CLI = Common Language Infrastructure
CIL = Common Intermediate Language
CTS = Common Type System
CLS = Common Language Specification

So far it is a handy reference when you want to get lower into the .NET
runtime then C# or VB.NET exposes.

Hope this helps
Jay

"Tom Shelton" <to*@mtogden.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
On 2003-11-05, William Ryan <do********@nospam.comcast.net> wrote:
This is going to sound really stupid... but I'm trying to learn IL better. I've seen a book on writing code in IL. But lets say that I was a
total
IL guru.. Where would I actually write the instructions? What type of project would I create?

TIA,

Bill


Sorry, Bill I don't really know the answer to your question... I was
actually just wondering about the book? This is an area, I've been
meaning to look at for quite some time. In fact, I have a little
BASIC variant I would like to write a .NET compiler for, and I'm looking
into all the resources I can find :) So, what was it called?

--
Tom Shelton
MVP [Visual Basic]


Jul 21 '05 #9
Are you serious about the book on Writing code in IL... does it really
make sense to write code in IL... IT makes sense to unassemble the
assembly... for some study purpose... but it;s crazy to write in IL...
and anyways who writes code in assembly langauge... i mean what %age of
people do so...

keyur shah

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 21 '05 #10
Keyur,
How many people write in pure Assembly (on any processor), because they
either like to or they have to?

Also I hope you agree writing code in IL is a useful talent to have for
Compiler writers as the Compiler need to create IL code (not necessarily IL
source) that gets generated into an assembly.

Hope this helps
Jay

"keyur shah" <ke***@softwareklinic.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Are you serious about the book on Writing code in IL... does it really
make sense to write code in IL... IT makes sense to unassemble the
assembly... for some study purpose... but it;s crazy to write in IL...
and anyways who writes code in assembly langauge... i mean what %age of
people do so...

keyur shah

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 21 '05 #11
Compiler and tool writers need to write in IL :). Also it's a fun way to
play around with the CLR capabilities (Don't know of any language that
allows you to do everything the CLR can do).

There's not much benefit to writing in IL (unlike in x86 where you could do
special optimizations) compared to a higher language, unless you need to do
something not possible in your language. I've only had to do this once, and
in retrospect, I think it might have been possible to achieve it with the
Reflection libraries, somehow.

-mike
MVP

"keyur shah" <ke***@softwareklinic.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Are you serious about the book on Writing code in IL... does it really
make sense to write code in IL... IT makes sense to unassemble the
assembly... for some study purpose... but it;s crazy to write in IL...
and anyways who writes code in assembly langauge... i mean what %age of
people do so...

keyur shah

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 21 '05 #12

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

Similar topics

48
by: Joseph | last post by:
Hi I'm writing a commercial program which must be reliable. It has to do some basic reading and writing to and from files on the hard disk, and also to a floppy. I have foreseen a potential...
6
by: Sebastian Kemi | last post by:
How should a write a class to a file? Would this example work: object *myobject = 0; tfile.write(reinterpret_cast<char *>(myobject), sizeof(*object)); / sebek
3
by: ishekar | last post by:
Hi, I have an application where i want to write data to a file, the data is being sent from an external source. I know the total size of the data and then i retrieve the data in small segments...
1
by: Daniel | last post by:
System.IO.StreamWriter Close or Flush method to shut down the computer in such a way that just part of the file is written? or an empty file is written? Also if the Close or Flush is to a...
5
by: Jeong-Gun Lee | last post by:
I'm writing a code of writing a value to a specific memory address. ================================================================= #include <stdio.h> int main() { long air; long...
102
by: Xah Lee | last post by:
i had the pleasure to read the PHP's manual today. http://www.php.net/manual/en/ although Pretty Home Page is another criminal hack of the unix lineage, but if we are here to judge the quality...
16
by: Claudio Grondi | last post by:
I have a 250 Gbyte file (occupies the whole hard drive space) and want to change only eight bytes in this file at a given offset of appr. 200 Gbyte (all other data in that file should remain...
6
by: arne.muller | last post by:
Hello, I've come across some problems reading strucutres from binary files. Basically I've some strutures typedef struct { int i; double x; int n; double *mz;
3
by: Barry Flynn | last post by:
Hi I am working with a VB 2005 program which has been converted from VB6. It writes data out to a flat file, with code like the following line WriteLine(riFileNo, "Hist", lsAssetID,...
89
by: Skybuck Flying | last post by:
Hello, This morning I had an idea how to write Scalable Software in general. Unfortunately with Delphi 2007 it can't be done because it does not support operating overloading for classes, or...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
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
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...

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.