This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_GP_LOCAL

Local data global pointer references

Type: bool

Help

Use global pointer relative offsets for small globals declared in the
same C file as the code that uses it.

Direct dependencies

<choice: Global Pointer options>

(Includes any dependencies from ifs and menus.)

Kconfig definition

At arch/nios2/Kconfig:71

Included via Kconfig:8Kconfig.zephyr:37arch/Kconfig:12

Menu path: (Top) → Nios II Options → Nios II Family Options → Global Pointer options

config GP_LOCAL
    bool "Local data global pointer references"
    depends on <choice>
    help
      Use global pointer relative offsets for small globals declared in the
      same C file as the code that uses it.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)