Disassembly Oddities.
dchokola
Posts: 8
I have been trying to debug some LMM code with a single .cog module, so I compiled both with -O0 and -g, then did an objdump. I'm new to Propeller assembly (In fact, I'm using C to *avoid* using assembly.) so I'm not sure if I just don't understand what I'm seeing or if there is some other problem.
Throughout the dump, particularly in the .cog module, there are lines like this:
Wouldn't these instructions be useless since the sources and destinations are identical?
Throughout the dump, particularly in the .cog module, there are lines like this:
0000015c <__LMM_JMP>: 15c: 1122bc08 rdlong 44 <pc>, 44 <pc>
00000000 <r0>: 0: 0000bca0 mov 40 <sp>, 40 <sp> 00000004 <r1>: 4: 0000bca0 mov 0 <r0>, 0 <r0> 00000008 <r2>: 8: 0000bc0a rdlong 4 <r1>, 4 <r1> wz
Wouldn't these instructions be useless since the sources and destinations are identical?
Comments
Thank you! I really over-thought this one.
Disassembly of final executable binaries is OK, though, because those no longer have relocations.