• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2014, Vol. 36 ›› Issue (06): 1011-1017.

• 论文 • Previous Articles     Next Articles

Optimizing the auto-vectorization in GCC
based on data-alignment directives          

LI Chunjiang,HUANG Juanjuan,XU Ying,DONG Yushan   

  1. (College of Computer,National University of Defense Technology,Changsha 410073,China)
  • Received:2013-08-03 Revised:2013-11-15 Online:2014-06-25 Published:2014-06-25

Abstract:

The general purpose processors support multicore parallelism on a chip and SIMD parallelism in each core. Although GCC complier makes use of the auto-vectorization for SIMD parallelism, the effects of autovectorization for OpenMP program is far from the expectation. Based on the implementation of the OpenMP compilation in GCC, we extend complier directives with data alignment attribute directive for OpenMP program. Our work enables GCC to make a more accurate estimation  on the alignment of data access, and optimizes the auto-vectorization in GCC.

Key words: data alignment attribute;compiler directives;auto-vectorization;GCC