RTOS Configuration Optimization via Source Code Analysis

Resolve Bottlenecks,
Find Innovative Solutions
Generate 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

VSEngineering 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

Engineering Contradiction:
Improveconfiguration accuracyVSAvoiddevelopment efficiency
Core Design Contradiction:
Manufacturing precisionVSProductivity

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.

Inventive Principle:
Principle #25Self-service

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.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

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

Engineering Contradiction:
Improveobject number agreementVSAvoidconfiguration consistency
Core Design Contradiction:
Quantity of substanceVSReliability

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.

Inventive Principle:
Principle #6Universality (Multi-functionality)

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.

Inventive Principle:
Principle #23Feedback

3Adaptability or versatility

If system configuration file is created separately from application source, then resource management flexibility is improved, but configuration synchronization deteriorates

Engineering Contradiction:
Improveresource management flexibilityVSAvoidconfiguration synchronization
Core Design Contradiction:
Adaptability or versatilityVSStability of the object's composition

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.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS9836289B2Executable code generation program and executable code generation device
Publication Date: 2017.12.05 RENESAS ELECTRONICS CORP
  • US9836289B2 patent drawing
  • US9836289B2 patent drawing
  • US9836289B2 patent drawing

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.