Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 12/16/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

target

Specifies a target for called functions or variables.

Syntax

Windows* OS:

__declspec(target(target-name))

Linux* OS:

__attribute__((target(target-name)))

Arguments

target-name

Specifies the target name. Possible values are:

  • arch=corei7

  • arch=core2

  • arch=atom

  • mmx

  • sse

  • sse2

  • sse3

  • ssse3

  • sse4

  • sse4a

  • sse4.1

  • sse4.2

  • popcnt

  • aes

  • pclmul

  • avx

  • avx2

  • avx512f

Description

This keyword specifies that the called function or variable is also available on the target. Only functions or variables marked with this attribute are available on the target, and only these functions can be called on the target.