User Tools

Site Tools


arm:toolchain

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
arm:toolchain [2021/03/03 12:27] – [GCC] utedassarm:toolchain [2022/09/12 00:30] (current) – external edit 127.0.0.1
Line 5: Line 5:
 [[https://gcc.gnu.org/onlinedocs/gcc-9.3.0/gcc/|Online documentation]] [[https://gcc.gnu.org/onlinedocs/gcc-9.3.0/gcc/|Online documentation]]
  
-Good options [[https://gcc.gnu.org/onlinedocs/gcc-9.3.0/gcc/ARM-Options.html#ARM-Options|Arm options]]+Good options [[https://gcc.gnu.org/onlinedocs/gcc-9.3.0/gcc/Invoking-GCC.html#Invoking-GCC|Command line options]], [[https://gcc.gnu.org/onlinedocs/gcc-9.3.0/gcc/ARM-Options.html#ARM-Options|Arm options]]
   * -march=armv6-m   * -march=armv6-m
   * -mtune=cortex-m0plus   * -mtune=cortex-m0plus
Line 12: Line 12:
   * -mthumb   * -mthumb
   * -mno-unaligned-access   * -mno-unaligned-access
 +  * To find unused functions: ''%%-ffunction-sections -fdata-sections -Wl,--gc-sections,--print-gc-sections%%''
  
 Passing linker options through gcc with -Wl,\\ Passing linker options through gcc with -Wl,\\
Line 31: Line 32:
 [[https://sourceware.org/binutils/docs-2.34/ld/index.html|Online documentation]] [[https://sourceware.org/binutils/docs-2.34/ld/index.html|Online documentation]]
  
 +[[https://www.silabs.com/community/mcu/32-bit/knowledge-base.entry.html/2018/12/06/understand_the_gnul-PTm6|Understand the linker script]] -- Human readable guide to linker scripts
 ===== as -- Assembler ===== ===== as -- Assembler =====
 [[https://sourceware.org/binutils/docs-2.34/as/index.html|Online documentation]] [[https://sourceware.org/binutils/docs-2.34/as/index.html|Online documentation]]
arm/toolchain.1614774472.txt.gz · Last modified: 2022/09/12 00:30 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki