./configure configuration Parameters cross-compile host,build target meaning

Source: Internet
Author: User
Cross-compiling the meaning of Host,build target:
Build is the machine you are using, and host is the platform you can run with the compiled program,
Target is the platform that your compiled program can handle.
This build and host are better understood, but target is difficult to do, what does it mean?
In general, we do not usually speak of the compilation of the work of his target,
Like what. /configure--build=i386-linux,--Host=arm-linux on the 386 platform to compile the program that can run on the arm board.


Reading autobook[1] Today, section 3.4 mentions configuration name.
The book mentions the variables of build, host, Target. It seems to be confusing, but it greatly simplifies the control of binary file format generation.
Build--Creates the package host in the build system--package, package can run target in host--the executable file generated by package can run on target.
For example, cross-compile a package on a gnu/linux system that can run on an AIX machine.
Then build = I*86-pc-linux-gnu host = rs6000-ibm-aix3.2 target = rs6000-ibm-aix3.2
Build a cross compilation tool on the Gnu/linux system,
This cross compilation tool can be run on Aix so that the interleaved files can run on arm,
So: Build = I*86-pc-linux-gnu host = rs6000-ibm-aix3.2 target = Arm-linux from this you can see
, when creating a package, you do not have to build on the local machine, you can set different configuration name to generate package for different systems.

Note: [1]autobook describes how to use a series of autotools provided by GNU to manage the opening of complex software systems.

Specifically, build is the machine you are using, and host is the platform that your compiled program can run, and target is the platform that your compiled program can handle.
This build and host are better understood, but target is not easy to do, what does it mean? Generally speaking, we do not use the written compilation of his target
, such as./configure--build=i386-linux,--Host=arm-linux on the 386 platform to compile the program that can run on the arm board. But generally we are compiling programs, not compiling tools, if we compile tools,
For example, GCC, this target is useful. If we need to compile a gcc for the arm Development Board on one of our machines, then target is MIPS. I do not know whether my explanation is correct, if you see this post, feel wrong, criticized.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.