8000 Can we initialize the global variables? · Issue #95 · kdlucas/byte-unixbench · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Can we initialize the global variables? #95
Open
@huyubiao

Description

@huyubiao

In GCC 10, the default option -fcommon is changed to -fno-common, see: PR85678. As a result, the uninitialized non-static global variables are moved from the COMMON block to the .bss. As a result, the performance tested in the same environment but different GCC versions is different.
Can we initialize the global variable to eliminate this difference? (Global variables are also usually recommended to be initialized.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0