None.
Controls where uninitialized global variables are allocated.
When -qcommon is in effect, uninitialized global variables are allocated in the common section of the object file. When -qnocommon is in effect, uninitialized global variables are initialized to zero and allocated in the data section of the object file.
-qcommon except when -qmkshrobj is
specified; -qnocommon when -qmkshrobj is specified.
-qnocommonThis option does not affect static or automatic variables, or the declaration of structure or union members.
This option is overridden by the common|nocommon and section variable attributes. See The common and nocommon variable attribute and The section variable attribute .
None.
int a, b:Compiling with -qcommon produces the equivalent of the following assembly code:
.comm _a,4 .comm _b,4Compiling with -qnocommon produces the equivalent of the following assembly code:
.globl _a
.data
.zerofill __DATA, __common, _a, 4, 2
.globl _b
.data
.zerofill __DATA, __common, _b, 4, 2