Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / October 2006

Tip: Looking for answers? Try searching our database.

writing a compiler

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Bellot - 05 Oct 2006 11:20 GMT
Hi,

as an exercise, I'd like to write a compiler for .net for a very small
language. I'd like to know where I could find documents about CIL/CLR
and how to start such a project. I already wrote compilers for real
processors, so what I need is information about CIL/CLR, file formats
all those things.
Your help would be very appreciated.

Best,
David

Signature

_______________________________________________________________________

David Bellot
GFI Informatique
Work: +33 (0)4 97 12 85 89
Cell: +33 (0)6 88 23 23 73
Web: http://david.bellot.free.fr
AIM/ICQ: ddb02

Jon Shemitz - 05 Oct 2006 19:08 GMT
> as an exercise, I'd like to write a compiler for .net for a very small
> language. I'd like to know where I could find documents about CIL/CLR
> and how to start such a project. I already wrote compilers for real
> processors, so what I need is information about CIL/CLR, file formats
> all those things.

For a small exercise, I'd look at Reflection.Emit. It has opcode
summaries, and it takes care of file format details for you.

Signature

.NET 2.0 for Delphi Programmers         www.midnightbeach.com/.net
Delphi skills make .NET easy to learn   Great reviews & good sales.

Mattias Sjögren - 05 Oct 2006 20:45 GMT
David,

>I already wrote compilers for real
>processors, so what I need is information about CIL/CLR, file formats
>all those things.

The CLI spec has all that.

http://www.ecma-international.org/publications/standards/Ecma-335.htm

There are also some good books you may want to read

"Compiling for the .NET Common Language Runtime" by John Gough
"Inside Microsoft .NET IL Assembler" by Serge Lidin

Mattias

Signature

Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Greg Young - 08 Oct 2006 20:09 GMT
Actually Serge has a new edition out.

http://www.amazon.com/Expert-NET-2-0-IL-Assembler/dp/1590596463

Cheers,

Greg Young
MVP - C#
http://codebetter.com/blogs/gregyoung

> David,
>
[quoted text clipped - 12 lines]
>
> Mattias
agapeton@gmail.com - 07 Oct 2006 06:04 GMT
Joe Duffy did a talk on this... called "Write a compiler in one hour"

http://www.bluebytesoftware.com/blog/PermaLink,guid,a8abcdce-bd63-4d1c-8bca-2cea
99f4eb53.aspx


> Hi,
>
[quoted text clipped - 17 lines]
> Web: http://david.bellot.free.fr
> AIM/ICQ: ddb02

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.