이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.
Target Language Compiler
생성 코드를 사용자 지정하고, S-Function 블록용으로 생성된 코드를 인라인 처리하고, 추가적인 파일이나 다른 유형의 파일을 생성
TLC(Target Language Compiler)는 코드 생성기의 핵심 부분입니다. TLC를 사용하여 생성 코드를 사용자 지정합니다. 사용자 지정을 통해 플랫폼별 코드를 생성하고 성능, 코드 크기 또는 기존 방법과의 호환성을 위해 사용자 자신의 알고리즘 변경 사항을 통합할 수 있습니다.
Target Language Compiler를 사용하면 다음을 수행할 수 있습니다.
시스템 타깃 파일로 지정된 옵션 세트를 사용자 지정합니다.
S-Function 블록을 위해 코드를 인라인 처리합니다.
추가 파일이나 서로 다른 유형의 파일을 생성합니다.
TLC의 기본 사항에 대해 알아보려면 Target Language Compiler 기본 사항 항목을 참조하십시오.
생성된 코드와 외부 코드 간의 인터페이싱을 위한 더 간단한 대체 접근 방식은 생성 코드 인터페이싱 항목을 참조하십시오.
도움말 항목
시작하기
- Target Language Compiler 기본 사항
Target Language Compiler를 사용하여 플랫폼별 코드를 생성하고, 성능, 코드 크기 또는 유지 관리하고자 하는 기존 메서드와의 호환성을 위해 원하는 알고리즘 변경 사항을 반영합니다. - Why Use the Target Language Compiler?
Use the Target Language Compiler to customize the set of options specified by your system target file, inline the code for S-Function blocks, or generate additional or different types of files. - The Advantages of Inlining S-Functions
Determine when, how, and why to inline S-functions. - Code Architecture
Learn what information a block object captures. - S-Function 인라인 처리
S-Function을 인라인 처리하는 기법을 적용합니다. - 인라인 S-Function의 코드 효율성 및 통합성 향상
S-Function 블록 코드를 생성된 코드에 효과적으로 통합하기 위해 향상된 TLC 블록 인터페이스를 활성화하는 방법을 알아봅니다.
Target Language Compiler 튜토리얼
- TLC 튜토리얼에 관한 조언
TLC 튜토리얼에서는 TLC를 사용하는 이유와 방법을 설명합니다. - Working with TLC Record Files
Learn how TLC accesses record files and interprets their contents. - Inline S-Functions with TLC
TLC inlines S-functions, resulting in faster, optimized code. - Explore Variable Names and Loop Rolling
Understand how and when TLC outputs loops and variable names. - Debug Your TLC Code
Invoke TLC debugger commands, set breakpoints, and trace code execution. - TLC Code Coverage to Aid Debugging
Use TLC coverage statistics to help identify bugs in TLC code. - Wrap User Code with TLC
Use TLC to integrate legacy and proprietary code into compiled models.
코드 생성 아키텍처
- Build Process
Create and use target language files. - TLC 구성
set_param명령어에 구성 데이터를 전달하여 빌드를 사용자 지정할 수 있습니다. - Configure Generated Code with TLC
Use the Target Language Compiler to generate source code in specific ways or to give the code-specific characteristics. - Code Generation Concepts
Understand TLC variables and file and record handling. - TLC 파일
시스템 타깃 파일과 블록 타깃 파일의 역할과 종류에 대해 알아보세요. - Data Handling with TLC
TLC library functions can transform data into data structures.
model.rtw 파일
- Exception to Using the Library Functions that Access model.rtw
Access parameter settings for a block in therecords.model.rtw - Access Memory in Generated Code Using Global Data Map
Generate TLC global data map record inmodel.rtwfile.
지시문과 내장 함수
- Target Language Compiler Directives
Learn the syntax and formats of directives, built-in functions, signal and parameter values, expressions, and comments. - Command-Line Arguments
Specify TLC calling arguments, filenames, and search paths.
S-Function 인라인 처리
- Inline S-Functions
Write S-functions to be used for code generation. - Inline C MEX S-Functions
Handle calls made by C MEX S-functions. - TLC Coding Conventions
Observe case conventions and use library functions to make your TLC code more robust. - Block Target File Methods
Use polymorphic block functions combined with the Target Language Compiler library functions to write a block target file. - 루프 롤링
%roll지시문을 사용하여 코드 생성기가for루프를 언롤할지 여부를 지정합니다.
TLC 함수 라이브러리 참조
- Target Language Compiler 라이브러리 함수 개요
라이브러리 함수를 사용하여 블록 레코드에 포함된 수많은 파라미터 이름/파라미터 값 쌍에 접근할 수 있습니다. - Target Language Compiler Function Conventions
Apply proper TLC function syntax and conventions. - Input Signal Functions
These TLC Functions process and report on input signals. - Output Signal Functions
These TLC functions process and report on output signals. - Parameter Functions
These functions process model parameters. - Block State and Work Vector Functions
These functions handle storage and states. - Block Compatibility Functions
These TLC functions are for specifying block compatibility with code generation features. - Block Path and Error Reporting Functions
These functions navigate paths and handle error conditions. - Code Configuration Functions
These functions are for tailoring code elements and comments. - Sample Time Functions
These functions are for handling continuous and discrete time. - Data Type Functions
These functions query and operate on data type records to support code generation. - Miscellaneous Functions
These functions are not elsewhere classified. - Advanced Functions
These functions are generally required only for special situations.
디버그 및 오류 처리
- Using the TLC Debugger
Use the TLC debugger to execute TLC code line-by-line, analyze and/or change variables in a specified block scope, and view the TLC call stack. - TLC Coverage
Determine what TLC statements are executed. - TLC Profiler
Measure the execution time of each TLC function. - TLC Error Handling
Use this alphabetical list of error messages to detect and address error conditions in your TLC code.