This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Where to get start about cross development!


mike wrote:
> 
> Check the FAQ first
> http://www.objsw.com/CrossGCC/

 I will disagree... Starting with the GCC manual and reading the section
"Installation/Cross-Compiler" is much, much better.  The time for the FAQ
comes after this...

 The CrossGCC FAQ is a continous source of all kind of misunderstandings,
which seem to be the result of never opening the GCC manual before reading
the FAQ.

------------------------------ clip --------------------------------------
Building and Installing a Cross-Compiler

GNU CC can function as a cross-compiler for many machines, but not all.
<snip>
Since GNU CC generates assembler code, you probably need a cross-assembler
that GNU CC can run, in order to produce object files.  If you want to link
on other than the target machine, you need a cross-linker as well. You also
need header files and libraries suitable for the target machine that you can
install on the host machine.

* Menu:

Steps of Cross		Using a cross-compiler involves several steps that may be
                	carried out on different machines.
Configure Cross		Configuring a cross-compiler.
Tools and Libraries	Where to put the linker and assembler, and the C library.
Cross Headers		Finding and installing header files for a cross-compiler.
Cross Runtime		Supplying arithmetic runtime routines (libgcc1.a).
Build Cross		Actually compiling the cross-compiler.
------------------------------ clip --------------------------------------

 Even the "You also need header files and libraries suitable for the target machine
that you can install on the host machine" seems to have been totally unknown for
many askers on this list. And all the issues in the 'Menu'...  Weird indeed. Is the
GCC manual so hard to get ?  What about using the Cygnus/RedHat GNUPro PDF docs at:

   http://www.redhat.com/support/manuals/gnupro.html

or the 'gcc.info' in almost every GCC installation and so on... Expect to find all
kind of 'elsewhere unsupported' options in the GNUPro docs though (like the
'-fembedded-cxx', '-finit-priority' and so on...)

> and mention about your target to get more response.

 Agreed, It sounds absurd that someone 'forgets' to mention that...

> Subject: Where to get start about cross development!
> 
>     I'm new to cross development.I wanna know
>     where can I get start about cross development

 For a novice using some prebuilt tools can be recommended before even thinking to
build the tools him/herself... For instance the recent 'arm-elf' troubles could be
forgotten, the Andy Hare's Cygwin hosted tools have been downloadable for over a
year (continously updated by Andy...)

  http://www.ahare.btinternet.co.uk/index.htm

and now also Cygnus/RedHat should have put their prebuilt binaries available, a clip
from a recent message in the 'comp.sys.arm' newsgroup:

-------------------- clip --------------------------------------------
BTW, Intel apparently has funded Red Hat to port the GnuPro toolkit to
Xscale targets and a package, including binary distributions for both
Linux and Windows, was recently posted on the Red Hat ftp site. This
binary distribution apparently can complile for any ARM core, not just
Xscale, and does not require installation of Cygwin for use on Windows.
(However, the libraries may need to be recomplied if you are linking
for other than an ARM5 target.) See:

ftp://ftp.redhat.com/pub/redhat/gnupro/

or any of the many Red Hat mirrors.
-------------------- clip --------------------------------------------

 Prebuilt tools can be found for quite many targets, only the download costs
something. Of course there are always people who just want to learn how to
build and get their 'do-it-yourself' tools, never using them for any serious
work, but for them too the prebuilt tools could serve as a reference.

Cheers, Kai



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]