이 페이지는 기계 번역을 사용하여 번역되었습니다. 최신 내용을 영문으로 보려면 여기를 클릭하십시오.
소스 코드 생성
함수 배포 및 통합을 위해 소스 코드 모듈을 생성하고 검증
소스 코드 생성을 시작하는 방법과 코드 생성기가 생성하는 파일과 폴더에 대해 알아봅니다. 대규모 프로젝트를 구성하려면 코드 생성 프로젝트 템플릿을 사용하십시오. 프로젝트는 필요한 파일을 찾고, 파일과 설정을 관리하고 공유하고, 소스 컨트롤과 상호 작용하고, 제어기 코드를 생성하고, 테스트 하네스 시뮬레이션을 실행하는 데 도움이 됩니다.
Generate Code by Using the Quick Start Tool 항목부터 시작해 볼 수 있습니다.
앱
Embedded Coder | Generate readable, compact, and fast C and C++ code for embedded processors used in mass production |
함수
도움말 항목
코드 생성하기
- Generate Code by Using the Quick Start Tool
Prepare a model for quickly generating readable, efficient code. - Increase Code Generation Speed
Alter a model to increase the speed at which the code generator generates code. - Generate Code Using Embedded Coder
Select a target for a Simulink® model, configure options, generate C code for embedded systems, and view generated files. - Internationalization and Code Generation
Internationalization support for enabling efficient globalization. - What Is Code Replacement?
Why and how to replace code. Code replacement libraries that MathWorks provides. Contents of a code replacement library and how the code generator uses the contents. Terminology and limitations. - Replace Code Generated from Simulink Models
This example shows how to replace generated code by using a code replacement library. - Control Regeneration of Top Model Code
Choose options for regenerating code for the top-level model. - Set Up Model for Controlling Program Execution
Set up a model so that you can start and stop program execution for logging output, monitoring data, and tuning parameters. - Configure Model for Debugging
Configure a model so that generated code and the build process are set for debugging.
프로젝트에서 코드 생성
- Generate Code and Simulate Models in a Project
This example shows how to use the code generation template for a new Project. - Generate Code and Simulate Models Programmatically with Project
This example shows how to use the Project API to create a new project and automate project tasks for manipulating files.
코드 생성 파일 및 폴더
- Manage Build Process Folders
Manage folders that the code generator creates. - Manage Build Process Files
Work with generated source files and dependency files that the code generator produces. - Manage Build Process File Dependencies
Work with generated source files and dependency files that the code generator produces. - Build Process Support for File and Folder Names
Troubleshoot build process errors that occur when file system issues prevent file processing. - Manage File Packaging of Generated Code Modules
Generate code modules and header files with the code generator.
코드 생성 튜토리얼
- Develop and Deploy Embedded Software Components to Platform Services by Using Embedded Coder
Manage a code generation workflow from model preparation to code deployment.
- 단계 1: Prepare Models for Code Generation
- 단계 2: Configure Basic Code Generation Settings
- 단계 3: Define the Interfaces Between the Generated Code and Your Deployment Platform
- 단계 4: Apply Code and Deployment Configurations to Models
- 단계 5: Call Existing Code from a Model and Generated Code
- 단계 6: Optimize the Generated Code
- 단계 7: Test the Generated Code
- 단계 8: Deploy the Generated Code