Writing in IL

  • Thread starter Thread starter William Ryan
  • Start date Start date
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
 
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?
 
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,
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
 
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
 
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
 
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
 
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
 
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
 
Back
Top