meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
gcc:global_variables [2025/01/13 10:47] – created niziakgcc:global_variables [2025/01/28 09:31] (current) niziak
Line 6: Line 6:
 Two global structures were defined under the same name in different components. Two global structures were defined under the same name in different components.
 No error was raised by linker.  No error was raised by linker. 
 +
 +Checking default options:
 +<code bash>
 +gcc -Q --help=common
 +</code>
 +
 +shows that ''-fcommon'' is enabled.
  
 From ''gcc-arm-none-eabi-9-2020-q2-update/share/doc/gcc-arm-none-eabi/info/gcc.info'': From ''gcc-arm-none-eabi-9-2020-q2-update/share/doc/gcc-arm-none-eabi/info/gcc.info'':
Line 36: Line 43:
      work on other systems that always treat uninitialized variable      work on other systems that always treat uninitialized variable
      definitions this way.      definitions this way.
 +     
 +[[https://developer.arm.com/documentation/101754/0623/armclang-Reference/armclang-Command-line-Options/-fcommon---fno-common]]