toolchaintechnotes: gcc -dumpmachine is similar to config.guess, but not same

Many distros have some customized things in gcc -dumpmachine.  RHEL uses
x86_64-redhat-linux-gnu, and Ubuntu uses x86_64-linux-gnu ("vendor"
field omitted).  So don't use "same" here, and also mention the "vendor"
field is sometimes omitted.
This commit is contained in:
Xi Ruoyao 2022-09-29 19:12:18 +08:00
parent aa9ade1fba
commit a243b36b8b
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -146,7 +146,8 @@
<note> <note>
<para>Almost all the build systems use names of the form <para>Almost all the build systems use names of the form
cpu-vendor-kernel-os, referred to as the machine triplet. An astute cpu-vendor-kernel-os, referred to as the machine triplet. The vendor
field is sometimes omitted. An astute
reader may wonder why a <quote>triplet</quote> refers to a four component reader may wonder why a <quote>triplet</quote> refers to a four component
name. The reason is historical: initially, three component names were enough name. The reason is historical: initially, three component names were enough
to designate a machine unambiguously, but as new machines and systems to designate a machine unambiguously, but as new machines and systems
@ -159,7 +160,7 @@
output will be <emphasis>i686-pc-linux-gnu</emphasis>. On a 64-bit output will be <emphasis>i686-pc-linux-gnu</emphasis>. On a 64-bit
system it will be <emphasis>x86_64-pc-linux-gnu</emphasis>. On most system it will be <emphasis>x86_64-pc-linux-gnu</emphasis>. On most
Linux systems the even simpler <command>gcc -dumpmachine</command> command Linux systems the even simpler <command>gcc -dumpmachine</command> command
will give you the same information.</para> will give you the similar information.</para>
<para>You should also be aware of the name of the platform's dynamic linker, often <para>You should also be aware of the name of the platform's dynamic linker, often
referred to as the dynamic loader (not to be confused with the standard referred to as the dynamic loader (not to be confused with the standard