Skip to main content
  • 产品
  • Evaluate our Software
  • 下载
  • Free Utilities
  • 购买
  • 支持
  • 关于我们
  • Search
    • Contact Us
    • Forum
    • Knowledge Base
    • Newsletter
    • RSS
  •   工作机会
  •   视频
  •   永续性
  • Embedded Studio
  • SEGGER Linker
  • Technology
  • Toolchain
  • License
SEGGER - Embedded Studio Product Icon

Link Time Optimization

Embedded Studio enables link time optimization to make your code even smaller.

  • One-click enable, no tinkering with command-line options
  • Linker-independent, works with GNU Linker and SEGGER Linker
  • Save up to 10% of ROM
Embedded Studio Downloads

Embedded Studio can run link time optimization (LTO, also intermodular optimization) on your project to produce a smaller application.

LTO is an additional step in the build process which is executed before the actual linking. It combines all input object files into one module and re-assembles it, which enables the compiler to further optimize code that came from different sources.

Link time optimization does not require changes in the source code or the linker scripts. You can simply enable it in the project options of your release configuration.

Embedded Studio's link time optimization can be used with the legacy GNU Linker as well as with the modern SEGGER Linker. In contrast to standard (GCC) makefile-based build systems, Embedded Studio made LTO an independent, stand-alone step.

Link time optimization mainly works on code and constant data and can reduce the ROM (Flash) requirements by up to 10%.

Use LTO in Embedded Studio

To use link time optimization in Embedded Studio, you simply need to enable it.

  1. Open the Project Properties (Right-click on the project in Project Explorer -> Options...
  2. Select the configuration you want LTO to be enabled in (usually your Release configuration)
  3. Set "Link Time Optimization" to "Yes".

LTO is ideally used with an application that is set to be optimized for size (set "Optimization Level" to "Optimize For Size").

When you now build your application, you will see an additional step "Link Time Optimization" before "Linking" in the Output Window.

全球总部

德国: SEGGER Microcontroller GmbH

地址: Ecolab-Allee 5
40789 Monheim am Rhein, Germany
电邮: info@segger.com
电话: +49-2173-99312-0
传真: +49-2173-99312-28

网点分布

中国:哲戈微系统科技(上海)有限公司

地址: 中国上海市闵行区秀涟路133号
大虹桥国际A 栋218室
邮编201199
电邮: china@segger.com
电话: +86-133-619-907-60

通过ISO 9001认证

ISO 9001

30多年的嵌入式行业经验

First-class embedded software tools since 1992
  • 版本说明
  • 免责声明
  • 隐私策略
  • 沪ICP备2022005181号
  • 沪公网安备 31011202014525号
© 2025 SEGGER - 版权所有.

您即将离开 segger.cn 而访问境外网站,是否继续?