Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I am wring some code that mix 16bit and 32bit code in asm and C. To fight some bugs I am having, I need to diassemble the code. Unfortunately I found that objdump is horrible: it very often produces bad disassembly that is very different from the source, so I cannot understand where the problem is. I use objdump with option "-S -d". So could anybody tell if if there is a way to have objdump worked better? Or: Is there a more reliable disassembler than objdump for what I am doing? Thanks, J
Post Follow-up to this message"junkoi" <spamtrap@crayne.org> wrote in message news:4b84e752-f698-4555-a9de-5794d02fe139@c19g2000prf.googlegroups.com... > I am wring some code that mix 16bit and 32bit code in asm and C. To > fight some bugs I am having, I need to diassemble the code. > Unfortunately I found that objdump is horrible: it very often produces > bad disassembly that is very different from the source, so I cannot > understand where the problem is. > It's likely that objdump is 32-bit only... > I use objdump with option "-S -d". So could anybody tell if if there > is a way to have objdump worked better? > > Or: Is there a more reliable disassembler than objdump for what I am > doing? > I was using NDISASM (comes with NASM assembler) to check your code the other day. It uses a very different syntax from GNU AS. I also use two other disassemblers rarely: WDIS (Watcom's disassembler - TASM style syntax) and objdump... Sorry... Rod Pemberton
Post Follow-up to this messageRod Pemberton wrote: > "junkoi" <spamtrap@crayne.org> wrote in message > news:4b84e752-f698-4555-a9de-5794d02fe139@c19g2000prf.googlegroups.com... > ... > It's likely that objdump is 32-bit only... > > > I was using NDISASM (comes with NASM assembler) to check your code the oth er > day. Ndisasm won't do mixed 16- and 32-bit code in one gulp. You'd have to disassemble once with "-b 16" and once with "-b 32", and cut-and-paste the two together. Might need other command line switches to set an origin, a synch point, and/or to skip sections to make it pretty. Not very convenient, but it should do the job, if you can't find anything better... Best, Frank
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.