Source Code Translation via Target System Constraints

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current software engineering techniques fail to efficiently adapt source code for execution on target systems due to lack of consideration for system-specific constraints, leading to suboptimal performance and resource usage.

Innovation Solution

A system comprising a processor and memory that identifies and translates source code based on target system constraints, using artificial intelligence models for neural machine translation to modify the code for better alignment with the target system's configuration, reducing execution costs like time, power, and memory usage.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If source code is written in various languages and libraries for different systems, then source code versatility is improved, but code adaptation complexity increases

Engineering Contradiction:
Improvesource code versatilityVSAvoidcode adaptation complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent introduces an intermediary translation system that converts source code between different languages and libraries. This mediator automatically handles the complexity of adaptation by translating code written in one language/library to another, eliminating the need for manual adaptation while preserving versatility across multiple systems.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The translation system provides universal functionality by supporting multiple source code languages and libraries simultaneously. It acts as a multi-functional platform that can translate between various programming languages and library frameworks, allowing a single system to handle diverse codebases without requiring separate adaptation tools for each language pair.

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

2Productivity

If source code is translated without considering target system constraints, then translation speed is improved, but execution performance deteriorates

Engineering Contradiction:
Improvetranslation speedVSAvoidexecution performance
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system performs preliminary analysis of target system constraints before executing the translation. By identifying and incorporating system-specific requirements, hardware architecture, and optimization opportunities in advance, the translation process generates code that is both efficiently produced and optimized for the target system's execution environment.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The translation system dynamically adjusts translation parameters and optimization strategies based on the identified target system constraints. It modifies code generation parameters, optimization levels, and translation depth to balance translation speed with execution performance, ensuring the translated code meets the specific requirements of the target system.

Inventive Principle:
Principle #35Parameter changes

3Power

If source code is manually adapted for target system configuration, then execution optimization is improved, but development time increases

Engineering Contradiction:
Improveexecution optimizationVSAvoiddevelopment time
Core Design Contradiction:
PowerVSLoss of time

Solution Approach 1:

The translation system provides self-service by automatically identifying target system constraints and optimizing the translated code without requiring manual intervention. It autonomously analyzes the target system configuration, applies appropriate optimizations, and generates optimized code, thereby achieving execution optimization while eliminating the time cost of manual adaptation.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system incorporates feedback mechanisms that analyze the target system constraints and use this information to guide the translation and optimization process. By continuously adjusting the translation strategy based on feedback from system analysis, it achieves optimized execution performance while maintaining efficient automated operation without manual intervention.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS20240192938A1Quantum and non-quantum source code translation
Publication Date: 2024.06.13 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US20240192938A1 patent drawing
  • US20240192938A1 patent drawing
  • US20240192938A1 patent drawing

AI summary

One or more systems, devices, computer program products and/or computer-implemented methods of use provided herein relate to a process to port code while adapting the code for a configuration of a target system. A system can comprise a memory that stores computer executable components, and a processor that executes the computer executable components stored in the memory, wherein the computer executable components can comprise an identification component that identifies a configuration of a target system on which a translated source code is to be executed, and a translation component that translates, based on a constraint defining the configuration, an original source code into the translated source code. In one or more embodiments, the translated source code can comprise a code language not comprised by the original source code and/or can be modified to align with the constraint, which can be of a hardware and/or software configuration.