Hello,
I have code downloaded straight from the embeddedarm ftp website.
I am trying to compile adc_7250.c
Compilation works great directly on the arm cpu.
gcc -mcpu=arm9 -o adc_7250 adc_7250.c
with
$ gcc -v
Using built-in specs.
Target: arm-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix
--enable-nls --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu
--enable-libstdcxx-debug
--enable-mpfr --enable-checking=release arm-linux-gnu
Thread model: posix
gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
But now that I incorporated the same code in a larger program, I need to
compile on my x86_64.
But the compilation shoke on the assembly code that needs to be compiled.
mcpu works on the arm, but is deprecated on my fedora 11
~/svn/iocs/cls1/drv/ts7000/Test/getAi
$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info
--with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap
--enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-ppl --with-cloog
--with-tune=generic --with-arch_32=i586 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.1 20090725 (Red Hat 4.4.1-2) (GCC)
~/svn/iocs/cls1/drv/ts7000/Test/getAi
$ gcc -mcpu=generic -o ts7000_getAi adc_7250.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
peekpoke.h: Assembler messages:
peekpoke.h:8: Error: no such instruction: `ldrh %ax,[ %rax]'
peekpoke.h:18: Error: no such instruction: `strh %dx,[ %rax]'
peekpoke.h:29: Error: no such instruction: `ldr %rax,[ %rax]'
peekpoke.h:39: Error: invalid char '[' beginning operand 2 `[ %rax]'
~/svn/iocs/cls1/drv/ts7000/Test/getAi
$ gcc -mcpu=arm9 -o ts7000_getAi adc_7250.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
adc_7250.c:1: error: bad value (arm9) for -mtune= switch
~/svn/iocs/cls1/drv/ts7000/Test/getAi
$ gcc -march=arm9 -o ts7000_getAi adc_7250.c
adc_7250.c:1: error: bad value (arm9) for -march= switch
adc_7250.c:1: error: bad value (arm9) for -mtune= switch
~/svn/iocs/cls1/drv/ts7000/Test/getAi
$ gcc -march=ep9312 -o ts7000_getAi adc_7250.c
adc_7250.c:1: error: bad value (ep9312) for -march= switch
adc_7250.c:1: error: bad value (ep9312) for -mtune= switch
man page of gcc indicates that ep9312 is valid parameter...
Q: Any idea on how to compile?
--
Emmanuel
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|