develop/toolchains/arm_compiler.html · develop/toolchains/arm_compiler.rst 공식 원문 ↗

Zephyr 3.7.0 · Develop · Toolchains · Arm Compiler

Arm Compiler 6

armclang toolchain과 license 환경을 설정하고 scatter file 기반 link 제약을 확인합니다.

Official pathdevelop/toolchains/arm_compiler.html
Source filedevelop/toolchains/arm_compiler.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

Arm Compiler 6 설치와 ZEPHYR_TOOLCHAIN_VARIANT·ARMCLANG_TOOLCHAIN_PATH, license·product definition 변수, armlink와 GNU code 호환성 제약을 설명합니다.

Variant

armclang

License

ARMLMD_LICENSE_FILE

Link

armlink · scatter

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 6DFC69DB4A9D748E408FCA66364FF49F6886596FB3065666D4E14E38C7334F92
.. _toolchain_armclang:

Arm Compiler 6
##############

#. Download and install a development suite containing the `Arm Compiler 6`_
   for your operating system.

#. :ref:`Set these environment variables <env_vars>`:

   - Set :envvar:`ZEPHYR_TOOLCHAIN_VARIANT` to ``armclang``.
   - Set :envvar:`ARMCLANG_TOOLCHAIN_PATH` to the toolchain installation
     directory.

#. The Arm Compiler 6 needs the :envvar:`ARMLMD_LICENSE_FILE` environment
   variable to point to your license file or server.

For example:

   .. code-block:: bash

      # Linux, macOS, license file:
      export ARMLMD_LICENSE_FILE=/<path>/license_armds.dat
      # Linux, macOS, license server:
      export ARMLMD_LICENSE_FILE=8224@myserver

   .. code-block:: batch

      # Windows, license file:
      set ARMLMD_LICENSE_FILE=c:\<path>\license_armds.dat
      # Windows, license server:
      set ARMLMD_LICENSE_FILE=8224@myserver

#. If the Arm Compiler 6 was installed as part of an Arm Development Studio, then
   you must set the :envvar:`ARM_PRODUCT_DEF` to point to the product definition file:
   See also: `Product and toolkit configuration <https://developer.arm.com/tools-and-software/software-development-tools/license-management/resources/product-and-toolkit-configuration>`_.
   For example if the Arm Development Studio is installed in:
   ``/opt/armds-2020-1`` with a Gold license, then set :envvar:`ARM_PRODUCT_DEF`
   to point to ``/opt/armds-2020-1/gold.elmap``.

   .. note::

      The Arm Compiler 6 uses ``armlink`` for linking. This is incompatible
      with Zephyr's linker script template, which works with GNU ld. Zephyr's
      Arm Compiler 6 support Zephyr's CMake linker script generator, which
      supports generating scatter files. Basic scatter file support is in
      place, but there are still areas covered in ld templates which are not
      fully supported by the CMake linker script generator.

      Some Zephyr subsystems or modules may also contain C or assembly code
      that relies on GNU intrinsics and have not yet been updated to work fully
      with ``armclang``.

.. _Arm Compiler 6: https://developer.arm.com/tools-and-software/embedded/arm-compiler/downloads/version-6

Part 3

한국어 전문 번역

Arm Compiler 6 설정

Zephyr에서 Arm Compiler 6를 사용하려면 다음 순서로 설치와 환경을 준비합니다.

  1. 운영체제에 맞는 Arm Compiler 6가 포함된 development suite를 내려받아 설치합니다.
  2. 환경 변수 설정 안내에 따라 ZEPHYR_TOOLCHAIN_VARIANT=armclang을 지정하고 ARMCLANG_TOOLCHAIN_PATH를 toolchain 설치 directory로 설정합니다.
  3. ARMLMD_LICENSE_FILE이 license file 또는 license server를 가리키게 설정합니다.

Linux와 macOS에서 license file 또는 server를 지정하는 예:

# Linux, macOS, license file:
export ARMLMD_LICENSE_FILE=/<path>/license_armds.dat
# Linux, macOS, license server:
export ARMLMD_LICENSE_FILE=8224@myserver

Windows에서 같은 값을 지정하는 예:

# Windows, license file:
set ARMLMD_LICENSE_FILE=c:\<path>\license_armds.dat
# Windows, license server:
set ARMLMD_LICENSE_FILE=8224@myserver

Arm Development Studio의 일부로 설치했다면 ARM_PRODUCT_DEF가 product definition file을 가리켜야 합니다. 자세한 내용은 Arm의 Product and toolkit configuration을 참고합니다. 예를 들어 /opt/armds-2020-1에 Gold license로 설치했다면 /opt/armds-2020-1/gold.elmap을 지정합니다.

Source

출처

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