On Mon, 13 Jun 2005, Leopold Toetsch via RT wrote: > Chip Salzenberg wrote: > > On Mon, Jun 13, 2005 at 02:57:09PM -0400, Andy Dougherty wrote: > > >>Yes. The compiler does the right thing. It sensibly reports > >>that sizeof(PMC) = 24 for SPARC. > > > > Then I remain puzzled how Parrot could ever misalign a double. > > Yes. So I am. Could somone please run this PASM snippet in a debugger so > that we can see, where it fails.
Here's where it fails: (dbx) run ../num2.pasm (process id 7721) [EMAIL PROTECTED] ([EMAIL PROTECTED]) signal BUS (invalid address alignment) in Parrot_set_n_nc (optimized) at line 149 in file "set.ops" 149 goto NEXT(); (dbx) where current thread: [EMAIL PROTECTED] =>[1] Parrot_set_n_nc(cur_opcode = ???, interpreter = ???) (optimized), at 0xa9160 (line ~149) in "set.ops" [2] runops_slow_core(interpreter = ???, pc = ???) (optimized), at 0xdd2a0 (line ~105) in "runops_cores.c" [3] runops_int(interpreter = ???, offset = ???) (optimized), at 0xdbc70 (line ~657) in "interpreter.c" [4] runops(interpreter = ???, offs = ???) (optimized), at 0xdc6d4 (line ~40) in "inter_run.c" [5] Parrot_runcode(interpreter = ???, argc = ???, argv = ???) (optimized), at 0x8482c (line ~757) in "embed.c" [6] Parrot_runcode(interpreter = ???, argc = ???, argv = ???) (optimized), at 0x846ac (line ~757) in "embed.c" [7] main(argc = ???, argv = ???) (optimized), at 0x68058 (line ~448) in "main.c" Alas, since this is an optimized compile, there is no single stepping in the debugger. -- Andy Dougherty [EMAIL PROTECTED]