delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/06/15:19:14

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
From: Michael Meissner <meissner AT cygnus DOT com>
Message-ID: <20000406151552.16744@cse.cygnus.com>
Date: Thu, 6 Apr 2000 15:15:52 -0400
To: Rickard Fahlquist <rifa AT enea DOT se>
Cc: cygwin AT sourceware DOT cygnus DOT com
Subject: Re: Gcc with ppc860
References: <38EC9CF0 DOT 82BB7C13 AT enea DOT se>
Mime-Version: 1.0
X-Mailer: Mutt 0.84
In-Reply-To: <38EC9CF0.82BB7C13@enea.se>; from Rickard Fahlquist on Thu, Apr 06, 2000 at 04:19:28PM +0200

On Thu, Apr 06, 2000 at 04:19:28PM +0200, Rickard Fahlquist wrote:
> Hi,
> I would like to use Gcc to compile code written for a PowerPC8xx. Is
> that possible and what flags would I in that case have to use?

When you have to go through the normal steps of configuring, building, and
installing GCC, Binutils, newlib, and possibly Gdb for a powerpc-eabi target.
The exact instructions are too long to go into here -- look at the
documentation for the above tools.

To configure for powerpc-eabi, you need to use --target=powerpc-eabi.

To compile code you need to use the -mcpu=860, -mcpu=823, or -mcpu=821 options
(the compiler treats them all the same).

To link the code, you probably need to write the appropriate stubs for the low
level stuff, and add -lc -l<your-stubs> to the link line, or use an appropriate
-m option if you have one of the supported target boards.

-- 
Michael Meissner, Cygnus Solutions, a Red Hat company.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner AT redhat DOT com		phone: +1 978-486-9304
Non-work: meissner AT spectacle-pond DOT org	fax:   +1 978-692-4482

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019