This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: About opcode!


libra <mr924352@cs.nthu.edu.tw> writes:

> I have one question about opcode in binutils source directory.
> Why have two opcode information(file) in two different location,one is in 
> "binutils-2.14/opcodes/xxx-opc.h", the other is in "binutils-
> 2.14/include/opcode/xxx.h"
> 
> For example:
> "binutils-2.14/opcodes/arm-opc.h" and "binutils-2.14/include/opcode/arm.h"
> 
> Why can not just use one opcode table file? For example, just use "binutils-
> 2.14/include/opcode/arm.h". What's different purpose between arm-opc.h and 
> arm.h?

There is no good reason for this.  It is just the ways the ARM tools
were historically developed.  You didn't even mention that there is
yet another version of the ARM opcode table in gas/config/tc-arm.c.  I
think it would be great if somebody cleaned it up.

Fortunately most processors do not have this type of duplicated
information.  For most processors, all opcode information can be found
in one place: opcodes/CPU-opc.c.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]