on mapping between assembly codes and objdump files

Ian Lance Taylor ian@airs.com
Tue Nov 8 04:19:00 GMT 2005


Liu Haibin <liu.haibin@gmail.com> writes:

> I know that I can get all INSN_MACRO from
> opcodes/ss-opc.c(mips-opcs.c) and go through macro() in
> gas/config/tc-ss.c to know all the corresponding actual instruction.
> But the whole process is a lot of work.
> 
> What I want is an easy way to find the mapping between the macro to
> actual instruction. Is there any option to gas so that it'll output
> all the mapping. Or any other ways?

You could write an assembler file which uses the macro, and dump the
output with objdump.

I don't know of any easier way.

Ian



More information about the Binutils mailing list