Autoconf-generated configure scripts can make decisions based on a canonical name for the system type, or target triplet, which has the form: ‘cpu-vendor-os’, where os can be ‘system’ or ‘kernel-system’

configure can  guess the canonical name for the type of system it's running on. To do so it runs a script called config.guess, which infers the name using the uname command or symbols predefined by the C preprocessor.

Alternately, the user can specify the system type with command line arguments to configure (see System Type. Doing so is necessary when cross-compiling. In the most complex case of cross-compiling, three system types are involved. The options to specify them are:

--build=build-type

the type of system on which the package is being configured and compiled. It defaults to the result of running config.guess.

--host=host-type

the type of system on which the package runs. By default it is the same as the build machine. Specifying it enables the cross-compilation mode.

--target=target-type

the type of system for which any compiler tools in the package produce code (rarely needed). By default, it is the same as host.

gcc

-dumpmachine

Print the compiler’s target machine (for example, i686-pc-linux-gnu)---and don’t do anything else.

-dumpversion

Print the compiler version (for example, 3.0)---and don’t do anything else.

-dumpspecs

Print the compiler’s built-in specs---and don’t do anything else.  (This is used when GCC itself is being built.)

[root@jerry ~]$ gcc -dumpmachine

x86_64-redhat-linux

[root@jerry ~]$ gcc -v

Using built-in specs.

Target: x86_64-redhat-linux

[[root@jerry ~]$ ld -V

GNU ld version 2.20.51.0.2-5.44.el6 20100205

Supported emulations:

elf_x86_64

elf_i386

i386linux

elf_l1om

[root@jerry ~]$ uname -m -o

x86_64 GNU/Linux

$ as -v

GNU assembler version 2.20.51.0.2 (x86_64-redhat-linux) using BFD version version 2.20.51.0.2-5.44.el6

[root@jerry ~]$ file /usr/bin/file

/usr/bin/file: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

转载于:https://blog.51cto.com/zhiyuandai/1924224

target triplets相关推荐

  1. 安卓支持RISC-V架构的技术剖析

    关键词:安卓.玄铁C910.虚拟机.RISC-V架构,RISC-V操作系统,IoT芯片,嵌入式操作系统,AOSP 引言 本文主要以RISC-V开发板上安卓的实现过程为切入点,讨论了在安卓上添加新的指令 ...

  2. 三元组相加获得target

    三元组相加获得target 3Sum 给定一个数组,选择三个元素相加,结果为target,找出所有符合的三元组 Given an array S of n integers, are there el ...

  3. 四元组相加获得target

    四元组相加获得target 4Sum 给定一个数组,选择四个元素相加,结果为target,找出所有符合的四元组. Given an array S of n integers, are there e ...

  4. SVN优化(一) SVN忽略maven项目的target

    SVN优化(一) SVN忽略maven项目的target 一 eclipse刚开始导入的项目: 二  解决办法 方式一: 在项目代码路径,如: F:\xyx\sl  鼠标右键,"Tortoi ...

  5. Lint found fatal errors while assembling a release target.

    错误如下 Lint found fatal errors while assembling a release target. To proceed, either fix the issues id ...

  6. CMake 打包已经存在的动态库生成 target

    一. 背景 在 CMakeLists.txt 中,某模块 A 通过 add_subdirectory 引入模块 B ,模块 B 通过 add_subdirectory 引入模块 C.模块 C 里面本身 ...

  7. 记录CSS3 target伪类简介

    CSS3 target伪类是众多实用的CSS3特性中的一个.它用来匹配文档(页面)的URI中某个标志符的目标元素.具体来说,URI中的标志符通常会包含一个"#"字符,然后后面带有一 ...

  8. HTML教程-各窗口间相互操作(Frame Target)

    文章来源: 山西之窗 由Frames分出来的几个窗口的内容并不是静止不变的,往往一个窗口的内容随着另一个窗口的要求而不断变化,这就提高了Frames的利用价值.为了完成各窗口之间的相互操作,我们必须为 ...

  9. [转]Introduction of iSCSI Target in Windows Server 2012

    Introduction of iSCSI Target in Windows Server 2012 源地址:http://blogs.technet.com/b/filecab/archive/2 ...

  10. [Django](1093, quot;You can#39;t specify target table #39;fee_details_invoices#39; for update in...

    dele_id = Fee_details_invoices.objects.filter(fee_detail_id__in=fee_id_list, return_type='2').values ...

最新文章

  1. 初学Java Web(7)——文件的上传和下载
  2. android圆形进度条ProgressBar颜色设置
  3. Python实战-获取鼠标键盘事件
  4. 《Sibelius 脚本程序设计》连载(十四) - 2.1 注释、语句、语句块
  5. python数据获取手段包括哪些_python开发应用-本地数据获取方法
  6. Python 中的 if __name__ == ‘__main__‘ 该如何理解
  7. 网络协议从入门到底层原理(6)应用层 - 域名、DNS、DHCP、HTTP(ABNF、HTTP报文格式、请求方法、头部字段、状态码、跨域)、代理、CDN
  8. 如何才是真正的大牛?遇见同行博士大牛,感慨自己太渣
  9. SqlServer修改密码后登陆不上
  10. linux安装moodle最新版,于linux已安装moodle
  11. linux进入桌面后CPU狂转,笔记本风扇狂转+CPU调节问题
  12. python抢红包 无需电脑_Python助你秒抢红包,拼手速?不存在!
  13. 例 6.5 有一个3*4的矩阵,要求编程序求出其中值最大的那个元素的值,以及其所在的行号和列号。
  14. Baizhi Memcached GJF
  15. 如何获取安卓iOS上的微信聊天记录、通过Metasploit控制安卓
  16. PC端滚动加载更多的实现方法
  17. 【论文泛读】Multi-modal Sarcasm Detection and Humor Classification in Code-mixed Conversations
  18. 荣获2021 CSDN年度社区之星,PPDE郑博培的成长之旅
  19. 旭日图(echarts)
  20. 人工智能作业——python实现洗衣机模糊推理系统实验

热门文章

  1. 使用 JMeter的性能测试
  2. *TEST 5 for NOIP 。。。
  3. spring boot基于Java的电影院售票与管理系统毕业设计源码011449
  4. 使用7段数码管实现0到99数码管显示(循环嵌套)
  5. 新的一年,如何做好日计划、月计划与年计划?
  6. 凉宫春日的忧郁第五章
  7. LaTex Introduction 基础介绍
  8. 手机java游戏下载网站
  9. loadrunner录制时使用IE浏览器无响应问题
  10. 量化套利策略|套利策略的原理