Skip to main content
change .bss to .data
Source Link
cleblanc
  • 3.7k
  • 1
  • 16
  • 17

static also tells the compiler to store the data in .bssdata section of memory where all globals are typically stored. You can use this for large arrays that might overflow the stack.

static also tells the compiler to store the data in .bss section of memory where all globals are stored. You can use this for large arrays that might overflow the stack.

static also tells the compiler to store the data in .data section of memory where globals are typically stored. You can use this for large arrays that might overflow the stack.

Source Link
cleblanc
  • 3.7k
  • 1
  • 16
  • 17

static also tells the compiler to store the data in .bss section of memory where all globals are stored. You can use this for large arrays that might overflow the stack.