[M3devel] more assembly symbols please?

Tony Hosking hosking at cs.purdue.edu
Sat Jan 19 18:33:08 CET 2008


Take a look at the .mc intermediate code output if you want to see  
that section of the data.  There are at least comments.  Use m3cgcat - 
binary < x.mc > x.mo to view it (You can run m3cgcat on any other CM3  
install).

On Jan 19, 2008, at 6:02 AM, Jay wrote:

> Any chance the m3cg output could have, um, some symbols for the  
> global data?
> It's kind of a pain to decode..
>
> The module/import info is ok a lot, lots of runtime links ok.
> I think the bad one might be RTHeapInfo but I have to decode the  
> very bare of symbols assembly..
> or comments? Like for record fields?
> Still thinking of sticking a call out to C code...Even  
> OutputDebugString since RTIO isn't working...
>
> I looked through the m3cg --help, didn't find anything.
>
> Tony?
>
> _MM_RTHeapInfo:
> 0 .long _L_1+224
> 4 .long _MM_RTHeapInfo+52
> 8 .long _MM_RTHeapInfo+308
> 12,16 .space 8
> 20 .long _L_1+152
> 24 .space 4
> 28 .long _L_1+220
> 32 .long _L_1+220
> 36 .long _MM_RTHeapInfo+160
> 40 .space 4
>  .long _RTHeapInfo_M3
>
> I get to count out to 160 bytes from here..:
>
> _L_1:
> 0 .byte 48
> 1 .byte 49
> 2 .byte 50
> 3 .byte 51
> 4 .byte 52
> 5 .byte 53
> 6 .byte 54
> 7 .byte 55
> 8 .byte 56
> 9 .byte 57
> a .byte 97
> b .byte 98
> c .byte 99
> d .byte 100
> e .byte 101
> f .byte 102
> 10 .long _RTHooks__TextLitInfo
> 14 .long _RTHooks__TextLitGetChar
> 18 .long _RTHooks__TextLitGetWideChar
> 1c .long _RTHooks__TextLitGetChars
> 20 .long _RTHooks__TextLitGetWideChars
> 24 .long 2
> 28 .long _L_1+16
> 2c .long 7
> 30 .ascii "shownew"
> 37 .space 1
> 38 .long 2
> 3c .long _L_1+16
> 40 .long 6
> 44 .ascii "update"
> 4a .space 2
> 4c .ascii "RTHeapInfo_M3"
> 50 .space 1
>  .ascii "Init"
>  .space 1
>
> I'll try the C code..
>
>  - Jay
>
>
>
>
>
> Connect and share in new ways with Windows Live. Get it now!




More information about the M3devel mailing list