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: Targets


>-----Original Message-----
>From: Stuart Kenny [mailto:skenny@solidum.com]
>Sent: 12 July 2001 16:46

>I have been using target names as they (more or less) appear 
>as output from config.guess, using targets such as
>i386-pc-linux-gnu, i386-pc-netbsd1.4.3,  and sparc-sun-solaris2.7
>
>The FAQ uses:
>powerpc-eabi, powerpc-elf, powerpc-linux, arm-linux, arm-elf, 
>sh-elf, sh-linux, h8300-coff and  m68k-coff
>
>
>My question:
>
>Am I using the wrong form for my target, or is either valid?  

  Either is valid.  The two part names that you see above are simple
abbreviations that omit the manufacturer part of the triplets above: i.e.
sh-elf is effectively sh-unknown-elf.  It makes no difference which form
you use, the configure command will tell you if you haven't chosen a 
valid target.  FWIW, the triplets output from config.guess are the canonical
(i.e. preferred and fully specified) forms, but the abbreviations are
an entirely legitimate alternative.

>Where do I are these terms defined?

  Mostly in configure or configure.in, but there's no one single place
where they're all listed; there are a whole load of switch cases, some
of which test one part of the triplet (eg cpu), some of which test another
(eg OS/Arch), and not all combinations that are possible will actually
work with each other, so there's no definitive answer to this question.
However the gcc website has a list of targets that are currently known
to build and work that you can refer to; it won't be comprehensive but
it's better than nothing.

>I've been a windows geek until resently, and I'm not sure what 
>half of these even are.  The FAQ assumes that you know what
>elf, arm, coff, etc. are.

  ARM is a cpu, ELF and COFF are object file formats.  There are various
glossary/jargon sites around the net, a websearch should help you track
them down.


     DaveK
-- 
"Computer games don't affect kids; I mean if Pac-Man affected us as kids,
we'd all be running around in darkened rooms, munching magic pills and
listening to repetitive electronic music."
    - Kristian Wilson, Nintendo, Inc, 1989.


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

------
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]