计算机科学 ›› 2012, Vol. 39 ›› Issue (Z6): 357-359.

• • 上一篇    下一篇

GCC中内嵌函数实现剖析

李春江,杜云飞,易会战,杨灿群   

  1. (国防科学技术大学计算机学院 长沙410073)
  • 出版日期:2018-11-16 发布日期:2018-11-16

Anatomy of the Implementation of Builtin Functions in GCC

  • Online:2018-11-16 Published:2018-11-16

摘要: GNU编译器集合(GCC)具有支持多种高级语言和多种目标处理器平台、文档及源代码开放等的特点,在工业界和学术界被广泛使用。GCC支持非常多的内嵌函数,内嵌函数是GCC编译器中非常重要的一部分实现。首先分析GCC中多种内嵌函数的目的和作用;之后结合实际工作,以使用向量扩展指令的内嵌函数实现为例,剖析了平台相关的内嵌函数的实现过程。本工作对深入理解C}CC编译器中的内嵌函数实现机制,对基于C}CC的研究和开发有较强的参考意义。

关键词: GCC,内嵌函数,剖析

Abstract: GNU Compiler Collection(GCC) supports multiple high level languages and multiple platforms with its internal documents and source code opened. It is widely used both in industry and research. GCC supports lots of builtin functions and the implementations of builtin functions are one of the important implementations of GCC. We analyzed the intensions and operations of the builtin functions in GCC. Then, combining with our practical work and taking the vector extension instruction oriented builtin functions as examples, we demonstated the implementation details of plat-form-related builtin functions in GCC. This work is really worth referenced both for the comprehension of the implementation mechanism of builtin functions and for research and development based on GCC.

Key words: GCC,Builtin functions,Anatomy

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!