RTOS Configuration Optimization via Source Code Analysis
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing methods for configuring RTOS-mounted applications are inefficient due to manual trial and error required to optimize system configuration files, which can lead to disagreements in resource settings between defined and actual usage, affecting development efficiency.
Innovation Solution
An executable code generation device and program that optimizes RTOS setting information by analyzing application source code and system configuration information, creating optimized RTOS setting information files to automate the configuration process, thereby eliminating the need for manual adjustments.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Manufacturing precision
If manual trial and error is used to optimize system configuration files, then configuration accuracy can be improved, but development efficiency deteriorates
Solution Approach 1:
The system performs self-service by automatically analyzing application source code to extract object usage information and comparing it with the system configuration file to detect disagreements and optimize configuration without manual intervention. The compiler autonomously identifies mismatches between defined and actual object usage, calculates optimal configurations, and generates optimized system configuration files.
Solution Approach 2:
The manual mechanical process of trial and error configuration optimization is replaced by an automated computational system. The compiler integrates with the RTOS configurator to automatically analyze code, detect configuration disagreements, and generate optimized configuration files, eliminating the need for manual iterative adjustments.
2Quantity of substance
If only object number is adjusted in system configuration file, then object quantity agreement is improved, but other configuration items may have disagreements
Solution Approach 1:
The optimization system performs multiple functions simultaneously: it detects disagreements in object numbers, object types, task stack capacities, interrupt handler activation methods, and other configuration items. The comprehensive analysis covers all configuration parameters, not just object quantities, ensuring complete configuration consistency.
Solution Approach 2:
The system establishes feedback by analyzing the compiled application code to extract actual object usage information and comparing it with the system configuration file definitions. This feedback loop identifies all configuration disagreements and guides the optimization process to achieve complete configuration agreement.
3Adaptability or versatility
If system configuration file is created separately from application source, then resource management flexibility is improved, but configuration synchronization deteriorates
Solution Approach 1:
The system merges the configuration creation process with the compilation process by integrating the RTOS configurator with the compiler. The optimized system configuration file generation is performed as part of the compilation workflow, ensuring that configuration information remains synchronized with the application source code while maintaining the ability to manage resources flexibly.
Data Source
AI summary
In order to improve the efficiency in development of RTOS-mounted application, there is to provide a compiler of creating executable code for running application of calling and using the resource of the RTOS as object on a target device, including an RTOS setting information optimization unit of receiving system configuration information and a compile unit of receiving application source code. The RTOS setting information optimization unit creates RTOS resource creating information including attribute information of usable objects, based on the system configuration information. The compile unit creates the RTOS setting information including a list of the objects actually used, from the analysis result of the RTOS resource creating information and the application source code and the RTOS setting information optimization unit optimizes the above based on the system configuration information.


