RE: Help compiling little-endian source


Subject: RE: Help compiling little-endian source
From: David Marceau (dmarceau@metrowerks.com)
Date: Thu Oct 05 2000 - 08:43:16 MDT


What exactly do you want to do with little-endian compilation?

I have yellowdog linux running on a PowerMac 7600/120.
To demonstrate seeing all the switches you may need in your compile on your
machine,
the easiest way is to take the default hello.c program and
run a compile on it using the -v switch.

Here is an example and its output:
cd /david/
gcc -v -g hello.c
Reading specs from /usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release/franzo)

/usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.2/cpp -lang-c -v -D__GNUC__=2 -D__
GNUC_MINOR__=95 -DPPC -D__ELF__ -Dpowerpc -D__PPC__ -D__ELF__ -D__powerpc__
-D__PPC -D__powerpc -Acpu(powerpc) -Amachine(powerpc) -D__CHAR_UNSIGNED__ -g
 -D_CALL_SYSV -D_BIG_ENDIAN -D__BIG_ENDIAN__ -Amachine(bigendian) -D_ARCH_PP
C -D__unix__ -D__linux__ -Dunix -Dlinux -Asystem(unix) -Asystem(posix)
hello.c /tmp/ccU0b4pX.i
GNU CPP version 2.95.2 19991024 (release/franzo) (PowerPC GNU/Linux)
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.2/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
 /usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.2/../../../../include/g++-3
 /usr/local/include

/usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.2/../../../../ppc-yellowdog-linux/
include
End of omitted list.
 /usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.2/cc1
/tmp/ccU0b4pX.i -quiet -dumpbase hello.c -g -version -o /tmp/ccplvpWb.s
GNU C version 2.95.2 19991024 (release/franzo) (ppc-yellowdog-linux)
compiled by GNU C version 2.95.2 19991024 (release/franzo).
 as -mppc -V -Qy -o /tmp/ccKDBVNc.o /tmp/ccplvpWb.s
GNU assembler version 2.9.5-moto-1.7 (ppc-yellowdog-linux) using BFD version
2.9.5.0.22
 /usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.2/collect2 -m
elf32ppclinux -dynamic-linker /lib/ld.so.1 /usr/lib/crt1.o /usr/lib/crti.o
/usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.2/crtbegin.o -L/usr/lib/gcc-lib/pp
c-yellowdog-linux/2.95.2 /tmp/ccKDBVNc.o
/usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.2/libgcc.a -lc
/usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.2/libgcc.a
/usr/lib/gcc-lib/ppc-yellowdog-linux/2.95.2/crtend.o /usr/lib/crtn.o

Compilation finished at Fri Sep 22 13:58:13

I hope this helps.
-----------------
Santé bonheur :)
David Marceau
http://www.deja.com/my/pb.xp?member_name=davidmarceau4432

> -----Original Message-----
> From: pl@smbh.smbh.univ-paris13.fr
> [mailto:pl@smbh.smbh.univ-paris13.fr]On Behalf Of Patrick Ladam
> Sent: Thursday, October 05, 2000 7:25 PM
> To: yellowdog-general@lists.yellowdoglinux.com
> Subject: Re: Help compiling little-endian source
>
>
> Try -DIS_BIG_ENDIAN (or something apparented, see info gcc) in
> the gcc compile option of the Makefile
> --
> -------------------------------------------------------------------
> | Patrick LADAM | |
> | Laboratoire CSSB | THE BIG BANG THEORY: |
> | UFR SMBH | |
> | 74 rue Marcel Cachin | In the begining there was |
> | 93017 Bobigny CEDEX | nothing at all. |
> | e-mail: | |
> | pl@tintin.smbh.univ-paris13.fr | Then, it exploded... |
> | Tel: 01 48 38 77 26 / 76 85 | |
> | Fax: 01 48 38 77 77 | |
> -------------------------------------------------------------------
>



This archive was generated by hypermail 2a24 : Thu Oct 05 2000 - 08:40:42 MDT