[M3devel] next problem (NT386GNU)
Jay
jayk123 at hotmail.com
Mon Jan 21 06:47:28 CET 2008
M3File.m3
PROCEDURE IsReadable (path: TEXT): BOOLEAN = (* We don't really check for readablitiy, just for existence *) BEGIN TRY EVAL FS.Status (path); line 82 RETURN TRUE; EXCEPT OSError.E => RETURN FALSE; END; END IsReadable;
-----LINE 82 ----- start_call_direct p.25 0 Struct load_address v.25 0 pop_param Addr load v.26 0 Addr Addr pop_param Addr call_direct p.25 Struct pop StructI'm guessing you only see an import for the first call on purpose, but I will compare with PPC_DARWIN:
-----LINE 46 ----- import_procedure FS__Status 2 Struct 0 p.25 declare_indirect 2078421550 -2078421551 declare_param _return 4 4 Addr 2078421550 F F 50 v.62 declare_param p 4 4 Addr 1358456180 F F 50 v.63 start_call_direct p.25 0 Struct load_address v.13 0 pop_param Addr load v.14 0 Addr Addr pop_param Addr call_direct p.25 Struct pop Struct
.globl _M3File__IsReadable .def _M3File__IsReadable; .scl 2; .type 32; .endef_M3File__IsReadable: .stabn 68,0,178,LM93-_M3File__IsReadableLM93: pushl %ebp movl %esp, %ebp pushl %edi pushl %esi pushl %ebx subl $300, %espLBB15: .stabn 68,0,181,LM94-_M3File__IsReadableLM94:L157: movl -280(%ebp), %eax andl $0, %eax orl $_L_1, %eax movl %eax, -280(%ebp) movl -284(%ebp), %eax andl $0, %eax movl %eax, -284(%ebp) subl $12, %esp leal -288(%ebp), %eax pushl %eax call _RTHooks__PushEFrame addl $16, %esp leal -288(%ebp), %eax addl $48, %eax subl $12, %esp pushl %eax call __setjmp addl $16, %esp testb %al, %al jne L158 .stabn 68,0,183,LM95-_M3File__IsReadableLM95: movl -288(%ebp), %eax subl $12, %esp pushl %eax call _RTHooks__PopEFrame addl $16, %esp movl $1, -304(%ebp) jmp L159L158: .stabn 68,0,185,LM96-_M3File__IsReadableLM96: movl $0, -304(%ebp)L159:LBE15: movl -304(%ebp), %eax leal -12(%ebp), %esp popl %ebx popl %esi popl %edi leave ret
M3File.IsReadable's call to FS.Status is omitted, all files are readable, even if they are not openable, therefore it "finds" cm3.cfg in the current directory and then fails to open it..
later..
..Jay
_________________________________________________________________
Climb to the top of the charts! Play the word scramble challenge with star power.
http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080121/5acadd45/attachment-0001.html>
More information about the M3devel
mailing list