Writing in IL

W

William Ryan

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
(e-mail address removed)
www.devbuzz.com
www.knowdotnet.com
 
T

Tom Shelton

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?
 
T

Tom Shelton

M

Michael Giagnocavo [MVP]

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
 
J

Jay B. Harlow [MVP - Outlook]

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
 
W

William Ryan

Will do! Many thanks!
Michael Giagnocavo said:
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

total
 
W

William Ryan

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 said:
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

total
 
K

keyur shah

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
 
J

Jay B. Harlow [MVP - Outlook]

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
 
M

Michael Giagnocavo [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top