Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp  Sitemap  Contact Us  RegisterRegister  LoginLogin
.Net Framework FAQs -I
 GenProgrammers : .Net, C#, Remoting, Visual basic,..etc : .Net Framework FAQs -I
Can I write IL programs directly?
Author Message
Interview
Admin Group
Admin Group
Avatar

Joined: 07 Jan 2007
Location: India
Online Status: Offline
Posts: 201117

Yes. Peter Drayton posted this simple example to the DOTNET mailing list:

.assembly MyAssembly {}
.class MyApp {
  .method static void Main() {
    .entrypoint
    ldstr      "Hello, IL!"
    call       void System.Console::WriteLine(class System.Object)
    ret
  }
}
Just put this into a file called hello.il, and then run ilasm hello.il. An exe assembly will be generated.


Quote Interview Reply






bullet     Posted: 02 Feb 2007 at 1:00am
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Select Category
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.092 seconds.