Article View: gnu.gcc.help
Article #52732Using gcc-2.1 as a cross-compiler for SONY NEWS
From: Tosh Nishimura
Date: Thu, 28 May 1992 10:17
Date: Thu, 28 May 1992 10:17
38 lines
1993 bytes
1993 bytes
I wanted to make cross-compiler for SONY-NEWS, so I made a config just like this.
configure --target=m68k-sony-bsd --host=mips-dec-ultrix42 --gas
and, made it.
make
I didn't forget to make ld and gas for m68k-sony-bsd.
I already installed binutils-beta-1.94 and gas-1.38.
After make was finished, I made enquire. Because enquire is
m68k-sony-bsd-binary, I thought it must be executed on SONY-NEWS separately.
After that, "enquire" was executed on SONY-NEWS.
./enquire -f > tmp-float.h
BUT, "enquire" didn't return. So I investigated "enqure". And I found
"enquire" was stop after print out "PROPERTIES OF FLOAT".
nnnnnnnnn... OK..., OK. let's go on.
(after that, I made cross-compiler with SS1+, "enquire" didn't stop.)
And I installed gcc-m68k-sony-bsd.
gcc-m68k-sony-bsd could see SONY's .h files.
And it almost worked except floating-point case.
This sample program did not work.
It printed "2 x 100=0".
#include <math.h>
void main()
{
int i;
double two;
two = 2.0;
i = (int)(two*100.0);
printf("2 x 100=%d\n", i);
}
I think floating-point expression is different between SONY and DECstation.
Can we use gcc-2.1 as a cross compiler?
Tosh
--
Tosh Nishimura nishimu@macro.co.jp
Macro Engineering Co., Ltd. Japan-3-3864-6641
Technical Details
Message-ID:
<NISHIMU.92May28191735@mike.macro.co.jp>Path:
arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!ames!sun-barr!sh.wide!wnoc-tyo-news!hoffman!janis.macro.co.jp!janis!nishimuShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,4e43356b6ae95bda,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-05-28 08:47:28 PST Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!ames!sun-barr!sh.wide!wnoc-tyo-news!hoffman!janis.macro.co.jp!janis!nishimu From: nishimu@macro.co.jp (Tosh Nishimura) Newsgroups: gnu.gcc.help Subject: Using gcc-2.1 as a cross-compiler for SONY NEWS Message-ID: <NISHIMU.92May28191735@mike.macro.co.jp> Date: 28 May 92 10:17:35 GMT Sender: news@macro.co.jp Distribution: gnu Organization: Macro Engineering Co., Ltd. Chiyoda-ku Tokyo, Japan. Lines: 38 Nntp-Posting-Host: mike