Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 11/07/2023
Public

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

Document Table of Contents

fzero-initialized-in-bss, Qzero-initialized-in-bss

Determines whether the compiler places in the DATA section any variables explicitly initialized with zeros.

Syntax

Linux:

-fzero-initialized-in-bss

-fno-zero-initialized-in-bss

Windows:

/Qzero-initialized-in-bss

/Qzero-initialized-in-bss-

Arguments

None

Default

-fno-zero-initialized-in-bss
or /Qzero-initialized-in-bss-

Variables explicitly initialized with zeros are placed in the BSS section. This can save space in the resulting code.

Description

This option determines whether the compiler places in the DATA section any variables explicitly initialized with zeros.

If option -fno-zero-initialized-in-bss (Linux*) or /Qzero-initialized-in-bss- (Windows*) is specified, the compiler places in the DATA section any variables that are initialized to zero.

IDE Equivalent

Visual Studio: None

Eclipse: Data > Disable Placement of Zero-Initialized Variables in .bss - place in .data instead

Alternate Options

None