public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: unlvsur unlvsur <unlvsur@live.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: Richard Sandiford <richard.sandiford@arm.com>,
	unlvsur unlvsur via Gcc-help <gcc-help@gcc.gnu.org>
Subject: RE: Treat GCC cross compiler as a native compiler?
Date: Wed, 29 Jun 2022 17:03:17 +0000	[thread overview]
Message-ID: <DM6PR05MB46976D1612A575F4F7175989D6BB9@DM6PR05MB4697.namprd05.prod.outlook.com> (raw)
In-Reply-To: <20220629165939.GH25951@gate.crashing.org>

[-- Attachment #1: Type: text/plain, Size: 1448 bytes --]


No. Canadian simply means build != host which is building compilers for other platforms.

It does not necessarily mean it is a native or cross.

And for clang, it does not differentiate native and cross at all. Clang only has native and Canadian compilation.

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows

From: Segher Boessenkool<mailto:segher@kernel.crashing.org>
Sent: Wednesday, June 29, 2022 13:00
To: unlvsur unlvsur<mailto:unlvsur@live.com>
Cc: Richard Sandiford<mailto:richard.sandiford@arm.com>; unlvsur unlvsur via Gcc-help<mailto:gcc-help@gcc.gnu.org>
Subject: Re: Treat GCC cross compiler as a native compiler?

On Wed, Jun 29, 2022 at 03:15:27PM +0000, unlvsur unlvsur via Gcc-help wrote:
> “cross-native” toolchain should be called canadian toolchain.

build=host=target makes a "native compiler".
host=target otherwise is a "cross-built native compiler".
build=host otherwise is a "cross-compiler".
build=target otherwise is sometimes called a "cross-back compiler".
And all three of build, host, and target different is what is called a
"Canadian cross".


The main difficulty with doing cross-built native is that many checks
for native compilers only work on the systems themselves, and do not
usually have a convenient way to override that either.  It's a fight
you cannot win, just build your native compilers on the system itself,
everyone else does!


Segher


[-- Attachment #2: Capture.png --]
[-- Type: image/png, Size: 67263 bytes --]

  reply	other threads:[~2022-06-29 17:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-29  3:53 unlvsur unlvsur
2022-06-29  7:44 ` Richard Sandiford
2022-06-29 15:15   ` unlvsur unlvsur
2022-06-29 16:59     ` Segher Boessenkool
2022-06-29 17:03       ` unlvsur unlvsur [this message]
2022-06-29 17:52         ` Segher Boessenkool
2022-06-29 17:58           ` unlvsur unlvsur

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM6PR05MB46976D1612A575F4F7175989D6BB9@DM6PR05MB4697.namprd05.prod.outlook.com \
    --to=unlvsur@live.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=richard.sandiford@arm.com \
    --cc=segher@kernel.crashing.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).