develop/sca/gcc.html · develop/sca/gcc.rst 공식 원문 ↗

Zephyr 3.7.0 · Develop · SCA · GCC

GCC static analysis 지원

GCC 10 이상의 path-sensitive analyzer를 Zephyr build variant로 활성화합니다.

Official pathdevelop/sca/gcc.html
Source filedevelop/sca/gcc.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

전통적인 warning보다 철저하고 비용이 큰 -fanalyzer와 ZEPHYR_SCA_VARIANT=gcc 사용법을 설명합니다.

Compiler

GCC 10+

Option

-fanalyzer

Variant

gcc

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 E0DC7095CD21AB9A327A9E78313F83EA83A0DBD8CADCC650F3B816A52AAB463A
.. _gcc:

GCC static analysis support
###########################

Static analysis was introduced in `GCC <https://gcc.gnu.org/>`__ 10 and it is enabled
with the option ``-fanalyzer``. This option performs a much more expensive and thorough
analysis of the code than traditional warnings.

Run GCC static analysis
***********************

To run GCC static analysis, :ref:`west build <west-building>` should be
called with a ``-DZEPHYR_SCA_VARIANT=gcc`` parameter, e.g.

.. code-block:: shell

    west build -b qemu_x86 samples/userspace/hello_world_user -- -DZEPHYR_SCA_VARIANT=gcc

Part 3

한국어 전문 번역

GCC static analysis 지원

GCC 10에서 static analysis가 도입되었으며 -fanalyzer option으로 활성화합니다. 이 option은 전통적인 warning보다 훨씬 비용이 크고 철저한 code analysis를 수행합니다.

GCC static analysis 실행

west build를 -DZEPHYR_SCA_VARIANT=gcc parameter와 함께 호출합니다.

west build -b qemu_x86 samples/userspace/hello_world_user -- -DZEPHYR_SCA_VARIANT=gcc

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.