There is one impediment to cross-compiling
tests compile and execute programs.
controls generated test program execution; it just needs a hint that
the compiler under test is a cross-compiler.
tools come into play for cross-compilation.
detects cross-compilation by
$(CC.EXECTYPE) != $(CC.HOSTTYPE)
option is set,
executes all compiler generated test programs via
arguments are the
and the command path and arguments to be executed.
locates a host matching
copies the executable program file and file arguments to the host,
and then executes the program on the host.
reads a per-user table
that contains remote copy and execution information for each
This file contains one host description per line, and each line
contains six tab separated fields:
the execution host type as determined by
the target host type as determined by
the host type as determined by
the host name suitable for the
the user login name for
if the same as the execution host user
directory where the program files and data will be copied
the remote execution command,
the remote copy command,
For example, here is a
that was used to cross-compile the
package for a
# HOSTTYPE HOSTNAME USER DIR SHELL COPY
linux.arm hostname gsf tmp ssh scp
define CROSSTYPE=HOSTTYPE for the cross-compilation architecture
package make HOSTTYPE=$CROSSTYPE CC=cross-compiling-cc