A question about gas configuration.
bjgnu@sunnorth.com.cn
bjgnu@sunnorth.com.cn
Wed Sep 26 12:12:00 GMT 2007
Dears,
score target now has score3 and score7 processors. And i want
to build the whole tools for both score3 and score7 without
configuring twice, using -march=score3 and -march=score7 for
the selection.
Because there are more difference for the two processers, so i
implement gas in two single files, tc-score.c and tc-score7.c for
each processor. Why i separated these files is just to make it
more easier to maintain.
But i can just build tc-score.o, without tc-score7.o.
I saw these in the Makefile.am and configuire files:
TARG_CPU = @target_cpu_type@
TARG_CPU_C = $(srcdir)/config/tc-@target_cpu_type@.c
TARG_CPU_O = tc-@target_cpu_type@.o
TARG_CPU_H = $(srcdir)/config/tc-@target_cpu_type@.h
score*l) cpu_type=score endian=little ;;
score*) cpu_type=score endian=big ;;
if test ${this_target} = $target ; then
target_cpu_type=${cpu_type}
My question is, does binutils provide some methods to build both
tc-score.c and tc-score7.c together? Without configuring twice?
Thanks!
More information about the Binutils
mailing list