X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FilxGen%2FEntry.ilx;h=674c83141a49aa88b669da90fc62ce8f44dc2933;hb=79d7a7c0d17b51dfb2bb06d758b6e556550862ba;hp=5dc62d8d236ca55286057bbe74a32846db721b4f;hpb=1276e713503e453c650a5f4addf57d3a34ea9a58;p=ghc-hetmet.git diff --git a/ghc/compiler/ilxGen/Entry.ilx b/ghc/compiler/ilxGen/Entry.ilx index 5dc62d8..674c831 100644 --- a/ghc/compiler/ilxGen/Entry.ilx +++ b/ghc/compiler/ilxGen/Entry.ilx @@ -1,18 +1,20 @@ .assembly test { } +.assembly extern 'mscorlib' { } +.assembly extern ilx 'std' { } // ENTRYPOINT .class MainMain { .method public static void Main(class [mscorlib]System.String[]) { .entrypoint - ldstr "LOG: loading main value\n" call void [mscorlib]System.Console::WriteLine(class [mscorlib]System.String) - ldsfld (func ( /* unit skipped */ ) --> class [ilx std]'()') class Main::'Main_main' + ldstr "LOG: *** loading main value" call void [mscorlib]System.Console::WriteLine(class [mscorlib]System.String) + ldsfld thunk<(func ( /* unit skipped */ ) --> class [std]PrelBase_Z0T)> class Main::'Main_main' - ldstr "LOG: evaluating main value\n" + ldstr "LOG: *** evaluating main value" call void [mscorlib]System.Console::WriteLine(class [mscorlib]System.String) - callfunc () --> (func ( /* unit skipped */ ) --> class [ilx std]PrelBase_Z0T) - ldstr "LOG: calling main value\n" + callfunc () --> (func ( /* unit skipped */ ) --> class [std]PrelBase_Z0T) + ldstr "LOG: *** calling main value" call void [mscorlib]System.Console::WriteLine(class [mscorlib]System.String) // ldunit - callfunc ( /* unit skipped */ ) --> class [ilx std]PrelBase_Z0T + callfunc ( /* unit skipped */ ) --> class [std]PrelBase_Z0T pop @@ -22,25 +24,25 @@ // guarantee that finalizers will be run. WE DON'T GUARANTEE TO RUN ANY // OTHER FINALIZERS... - ldstr "LOG: calling critical finalizers manually in main()\n" + ldstr "LOG: ***calling critical finalizers manually in main()" call void [mscorlib]System.Console::WriteLine(class [mscorlib]System.String) -ldsfld thunk<(func (thunk>) --> (func (/* unit skipped */) --> class [ilx std]PrelBase_Z0T))> [ilx std]'PrelHandle'::'PrelHandle_stdHandleFinalizzer' -ldsfld thunk> [ilx std]'PrelHandle'::'PrelHandle_stdin' - callfunc (thunk>) --> (func ( /* unit skipped */ ) --> class [ilx std]PrelBase_Z0T) - callfunc ( /* unit skipped */ ) --> class [ilx std]PrelBase_Z0T +ldsfld thunk<(func (thunk>) --> (func (/* unit skipped */) --> class [std]PrelBase_Z0T))> [std]'PrelHandle'::'PrelHandle_stdHandleFinalizzer' +ldsfld thunk> [std]'PrelHandle'::'PrelHandle_stdin' + callfunc () (thunk>) --> (func ( /* unit skipped */ ) --> class [std]PrelBase_Z0T) + callfunc ( /* unit skipped */ ) --> class [std]PrelBase_Z0T pop -ldsfld thunk<(func (thunk>) --> (func (/* unit skipped */) --> class [ilx std]PrelBase_Z0T))> [ilx std]'PrelHandle'::'PrelHandle_stdHandleFinalizzer' -ldsfld thunk> [ilx std]'PrelHandle'::'PrelHandle_stdout' - callfunc (thunk>) --> (func ( /* unit skipped */ ) --> class [ilx std]PrelBase_Z0T) - callfunc ( /* unit skipped */ ) --> class [ilx std]PrelBase_Z0T +ldsfld thunk<(func (thunk>) --> (func (/* unit skipped */) --> class [std]PrelBase_Z0T))> [std]'PrelHandle'::'PrelHandle_stdHandleFinalizzer' +ldsfld thunk> [std]'PrelHandle'::'PrelHandle_stdout' + callfunc () (thunk>) --> (func ( /* unit skipped */ ) --> class [std]PrelBase_Z0T) + callfunc ( /* unit skipped */ ) --> class [std]PrelBase_Z0T pop -ldsfld thunk<(func (thunk>) --> (func (/* unit skipped */) --> class [ilx std]PrelBase_Z0T))> [ilx std]'PrelHandle'::'PrelHandle_stdHandleFinalizzer' -ldsfld thunk> [ilx std]'PrelHandle'::'PrelHandle_stderr' - callfunc (thunk>) --> (func ( /* unit skipped */ ) --> class [ilx std]PrelBase_Z0T) - callfunc ( /* unit skipped */ ) --> class [ilx std]PrelBase_Z0T +ldsfld thunk<(func (thunk>) --> (func (/* unit skipped */) --> class [std]PrelBase_Z0T))> [std]'PrelHandle'::'PrelHandle_stdHandleFinalizzer' +ldsfld thunk> [std]'PrelHandle'::'PrelHandle_stderr' + callfunc () (thunk>) --> (func ( /* unit skipped */ ) --> class [std]PrelBase_Z0T) + callfunc ( /* unit skipped */ ) --> class [std]PrelBase_Z0T pop ldstr "LOG: exit main()\n"