Article View: comp.sys.sgi.misc
Article #399Compiling for all IRIX platforms
From: gandalf
Date: Mon, 13 Oct 1997 00:00
Date: Mon, 13 Oct 1997 00:00
51 lines
2459 bytes
2459 bytes
I compiled an executable on this platform:
% uname -a
IRIX64 hostname 6.2 03131016 IP19
using gcc version 2.7.2
On another Irix 6.2 machine, the executable fails to run (I have
no uname output for that machine). When I do a 'file' command on
my executable, I get:
a.out: ELF 32-bit MSB mips-2 dynamic executable MIPS - version 1
Compiling with various compilation flags, I get:
% gcc -mips1 test.c
% file a.out
a.out: ELF 32-bit MSB mips-2 dynamic executable MIPS - version 1
% uname -a
IRIX64 shellx 6.2 03131016 IP19
% gcc -v
Reading specs from /usr/local/lib/gcc-lib/mips-sgi-irix5.3/2.6.3/specs
gcc version 2.6.3
% gcc -mips2 test.c
% file a.out
a.out: ELF 32-bit MSB mips-2 dynamic executable MIPS - version 1
% cc -mips1 test.c
% file a.out
a.out: ELF 32-bit MSB mips-2 dynamic executable MIPS - version 1
% cc -mips2 test.c
% file a.out
a.out: ELF 32-bit MSB mips-2 dynamic executable MIPS - version 1
% cc -mips3 test.c
% file a.out
a.out: ELF 64-bit MSB mips-3 dynamic executable MIPS - version 1
% cc -mips4 test.c
% file a.out
a.out: ELF 64-bit MSB mips-4 dynamic executable MIPS - version 1
According to the online docs, using the '-mips1' flag should generate
an executable that runs on all SGI platforms, but I can't seem
to get any compilre to produce an executable whose file type is
'ELF 32-bit MSB mips-1 dynamic executable MIPS - version 1'.
Is there anything else to do to generate a 'lowest common denominator'
executable? How do I get a compiler to generate a
'ELF 32-bit MSB mips-2' executable? Thanks in advance.
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
Technical Details
Message-ID:
<876783938.25533@dejanews.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,be14d883efce22e3,start X-Google-Attributes: gid11318c,public X-Google-Thread: 100159,be14d883efce22e3,start X-Google-Attributes: gid100159,public From: gandalf@viman.com Subject: Compiling for all IRIX platforms Date: 1997/10/13 Message-ID: <876783938.25533@dejanews.com> X-Deja-AN: 280209093 X-Http-User-Agent: Mozilla/4.02 [en] (X11; I; SunOS 5.5 sun4u) X-Originating-IP-Addr: 165.227.27.9 () Organization: Wyatt River Software X-Authenticated-Sender: gandalf@viman.com X-Article-Creation-Date: Mon Oct 13 23:05:39 1997 GMT Newsgroups: comp.sys.sgi.misc,gnu.gcc.help