samples/cpp/hello_world/README.html · samples/cpp/hello_world/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · C++

Hello C++ World

QEMU RISC-V에서 가장 작은 C++ application을 build하고 실행합니다.

Official pathsamples/cpp/hello_world/README.html
Source filesamples/cpp/hello_world/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

C++ 지원과 QEMU 실행 명령, 실제 console 출력을 함께 확인합니다.

Language

C++

Target

qemu_riscv32

Output

Console greeting

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 C8949514045367ACE4C5E28334CF7655F8AD00FA6521E03336A4A96FAAE3F84B
.. _hello_cpp_world:

Hello C++ World
###############

Overview
********

A simple :ref:`C++ <language_cpp>` sample that can be used with many supported board and prints
"Hello, C++ world!" to the console.

Building and Running
********************

This configuration can be built and executed on QEMU as follows:

.. zephyr-app-commands::
   :zephyr-app: samples/cpp/hello_world
   :host-os: unix
   :board: qemu_riscv32
   :goals: run
   :compact:

To build for another board, change "qemu_riscv32" above to that board's name.

Sample Output
=============

.. code-block:: console

    Hello C++, world! qemu_riscv32

Exit QEMU by pressing :kbd:`CTRL+C`

Part 3

한국어 전문 번역

개요

여러 지원 board에서 사용할 수 있고 console에 "Hello, C++ world!"를 출력하는 간단한 C++ sample입니다.

Build와 실행

이 구성은 다음과 같이 QEMU에서 build하고 실행할 수 있습니다.

west build -b qemu_riscv32 samples/cpp/hello_world
west build -t run

다른 board용으로 build하려면 위의 qemu_riscv32를 해당 board 이름으로 바꿉니다.

Sample 출력

Hello C++, world! qemu_riscv32

CTRL+C를 눌러 QEMU를 종료합니다.

Source

출처

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