* [Q] cross-compile gmp lib for powerpc on Solaris
@ 2000-12-04 17:38 Xiaobo Wang
0 siblings, 0 replies; only message in thread
From: Xiaobo Wang @ 2000-12-04 17:38 UTC (permalink / raw)
To: 'gcc-help@gcc.gnu.org'
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1662 bytes --]
Title: [Q] cross-compile gmp lib for powerpc on Solaris
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-12-04 17:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-04 17:38 [Q] cross-compile gmp lib for powerpc on Solaris Xiaobo Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).