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

Code analysis

Embedded Studio features different means of application analysis, such as memory use display, static stack analysis, and static code analysis. You get all information to improve your application even before you start debugging.

  • Display memory usage
  • Static stack analysis
  • Static code analysis
  • Symbol information windows
  • Code outline browser
Buy now
Downloads
Documentation
SEGGER Embedded Studio
  1. 1.Memory Usage
  2. 2.Code Outline
  3. 3.Source Navigator
  4. 4.Symbol Browser
  5. 5.Stack Usage
  6. 6.Static Code Analysis
  7. 7.External Tools

During development or after the source code of an application has been written, it can be helpful to get more information about the code and what the compiler created from it.

You might have memory use requirements and need to check if there would be enough free memory, or you want to see which data structures eat up most of your RAM to locate and improve them, or you want to verify that some symbols or functions are actually in that memory region where you want them to be.

Embedded Studio offers various features and windows that provide you with enough information to analyze your application even before debugging.

Memory Usage

After your application has been successfully built, the log window displays the memory usage for your target device. You can immediately see how much Flash and RAM is used by your application.

The Memory Usage Window goes more into detail to show you where the sections, i.e. code and data, are placed. The memories and its sizes are taken from your device and settings. It displays all memories you configured, such as internal Flash, RAM and also external memories.

embedded studio output memory usage
embedded studio memory usage

Code Outline

embedded studio code outline structure
embedded studio code outline preview

Large source files with hundreds of lines can be complex and hard to understand, which makes locating one function or symbol definition more difficult. The Code Outline Window presents a clear structured outline of your source, which eases navigation through your code. Includes and defines can be grouped in the display, and complex elements can be expanded to show their members. With a single click you can jump to any element.

Source Navigator

Even if your project is modular and well structured, it can be hard to remember where a function or symbol is defined. The Source Navigator provides fast access to all your functions typedefs and variables with a single click. You can also use the quick input of Find Symbol (Alt+Y) and Find Method (Ctrl+M) for even faster navigation.

embedded studio source navigator

Symbol Browser

embedded studio symbol browser

The Symbol Browser provides more insight into the compiled application. You can see how much memory is used by each symbol and where it will end up in your target. Symbols can be grouped in different ways, by source file, section, or type.

Stack Usage

In most cases it is hard to guess how many stack your application or each task will use. The Stack Usage Window does a static stack analysis of your application and shows the stack use of functions and call paths.

embedded studio stack usage

Static Code Analysis

embedded studio static code analysis

A compiler will usually generate warnings for anything that might break your application, such as uninitialized variables. To find further issues which have no immediate effect but might affect performance and to increase your code quality you can run static code analysis on your sources. All findings will be shown in the log to easily navigate to them.

Find out more about the static code analyzer on our Wiki page.

 

External Tools

For further analysis of your code, for example to run a MISRA check on your sources, Embedded Studio features the inclusion of external tools. You can add commands to be executed and run them on your project items. The tool output is shown in the log window, and for tools such as Lint you can jump directly to reported source lines.

embedded studio external tools

全球总部

德国: 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 而访问境外网站,是否继续?