473,322 Members | 1,911 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,322 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 1485
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.