This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
I am trying to compile the gmp lib for powerpc 860 / VxWorks on Solaris. Got a few questions
Q1: What is the minimual version of gcc for powerpc support (I use egcs-2.91.66)?
Q2: How to setup gcc for cross-compilation? I tried configure --target=powerpc-wvr-vxworks
but the compiler reported the following errors for assemble files:
gcc -O2 -c -g -O add_n.s
add_n.s: Assembler messages:
add_n.s:29: Error: Unknown pseudo-op: `.toc'
add_n.s:32: Error: Unknown pseudo-op: `.csect'
add_n.s:36: Error: Unknown pseudo-op: `.csect'
add_n.s:38: Error: Rest of line ignored. First ignored character is `['.
add_n.s:39: Error: Unknown pseudo-op: `.csect'
add_n.s:41: Error: Unknown opcode: `mtctr'
add_n.s:42: Error: Unknown opcode: `lwz'
... ... ...
source code:
.toc
.extern __mpn_add_n[DS]
.extern .__mpn_add_n
.csect [PR]
.align 2
.globl __mpn_add_n
.globl .__mpn_add_n
.csect __mpn_add_n[DS]
__mpn_add_n:
.long .__mpn_add_n, TOC[tc0], 0
.csect [PR]
.__mpn_add_n:
mtctr 6 # copy size into CTR
lwz 8,0(4) # load least significant s1 limb
... ... ...
could somebody help me? thanks
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |