dotgnu-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [DotGNU]dotgnu.il.namespace.splitter.pl


From: James Michael DuPont
Subject: Re: [DotGNU]dotgnu.il.namespace.splitter.pl
Date: Sat, 15 Feb 2003 18:13:03 +0100 (CET)

Here is an updated module.
It will take huge il file, the corelib.il for example,

1. it splits all the classes by namespace, this allows for simpler
editing!
The output file name is appended with the name of the namespace :
corlib.il.System.Threading.il

2. it comments out all code, this allows you to stub out modules
that might be needed 

the next step will be to emit a debug message if the stubs are called.

Of course, this is under the GPL, and also copyright by me.

Here is an example output :

.namespace 'System.Threading'
{
.class public auto sealed ansi beforefieldinit 'AutoResetEvent' extends
'System.Threading'.'WaitHandle'
{
        .method public hidebysig specialname rtspecialname instance void
'.ctor'(bool 'initialState') cil managed 
        {
//              // Start of method header: 676cd
//              .maxstack  8
//      ?L676ce:
//              ldarg.0
//              call       instance void 
'System.Threading'.'WaitHandle'::'.ctor'()
//              ldarg.0
//              ldc.i4.0
//              ldarg.1
//              ldnull
//              call       native int
'System.Threading'.'NativeEventCalls'::'CreateEvent_internal'(bool,
bool, class 'System'.'String')
//              callvirt   instance void
'System.Threading'.'WaitHandle'::'set_Handle'(native int)
//              ret
        }
        .method public instance bool 'Set'() cil managed 
        {
//              // Start of method header: 676e3
//              .maxstack  8
//      ?L676e4:
//              ldarg.0
//              callvirt   instance native int
'System.Threading'.'WaitHandle'::'get_Handle'()
//              call       bool
'System.Threading'.'NativeEventCalls'::'SetEvent_internal'(native int)
//              ret
        }
        .method public instance bool 'Reset'() cil managed 
        {
//              // Start of method header: 676f0
//              .maxstack  8
//      ?L676f1:
//              ldarg.0
//              callvirt   instance native int
'System.Threading'.'WaitHandle'::'get_Handle'()
//              call       bool
'System.Threading'.'NativeEventCalls'::'ResetEvent_internal'(native
int)
//              ret
        }
}
}

=====
James Michael DuPont
http://introspector.sourceforge.net/

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Bis zu 100 MB Speicher bei http://premiummail.yahoo.de

Attachment: split.pl
Description: split.pl


reply via email to

[Prev in Thread] Current Thread [Next in Thread]