Partial Code Compilation for Application Debugging

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The existing methods for updating and debugging application programs are inefficient, as they require compiling the entire code every time, which is time-consuming and reduces development and debugging speed.

Innovation Solution

The proposed method involves compiling only the modified portions of the application program's code, while using cached compilation results for unchanged code, and transmitting the updated code package to a multi-platform framework for conversion into a second application program that operates in a different runtime environment.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If the complete code of the application program is compiled every time, then the compilation result is complete and accurate, but the compilation time increases and development efficiency decreases

Engineering Contradiction:
Improvecompilation result completenessVSAvoiddevelopment efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent divides the complete code into modified portions and unmodified portions, compiling only the modified portions while reusing cached compilation results for unmodified portions. This segmentation approach maintains compilation accuracy for changed code while significantly reducing overall compilation time and improving development efficiency.

Inventive Principle:
Principle #1Segmentation

2Productivity

If only modified portions of the code are compiled, then the compilation speed increases, but the complexity of determining what to compile increases

Engineering Contradiction:
Improvecompilation speedVSAvoidcode differentiation complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent performs preliminary differentiation of the complete code into modified and unmodified portions before compilation. By pre-identifying which code sections need recompilation and which can use cached results, the system prepares the compilation strategy in advance, reducing the complexity of determining what to compile during the actual compilation process.

Inventive Principle:
Principle #10Preliminary action

3Reliability

If the entire code is recompiled, then all code is up-to-date, but the time consumed increases significantly for large codebases

Engineering Contradiction:
Improvecode up-to-datenessVSAvoidcompilation time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies partial action by compiling only the modified portions of the code rather than the entire codebase. This selective compilation approach ensures that updated code is processed while avoiding the time-consuming reCompilation of unchanged code, significantly reducing compilation time for large codebases while maintaining code up-to-dateness where needed.

Inventive Principle:
Principle #16Partial or excessive action

Data Source

PatentUS20250199805A1Updating and debugging application program
Publication Date: 2025.06.19 TENCENT TECHNOLOGY (SHENZHEN) CO LTD
  • US20250199805A1 patent drawing
  • US20250199805A1 patent drawing
  • US20250199805A1 patent drawing

AI summary

In a method for updating and debugging an application program performed by a developer tool, a modified portion of a complete code of a first application program is compiled to obtain a first compilation result. An updated code package of the first application program is generated based on the first compilation result and a stored second compilation result. The stored second compilation result corresponds to unmodified portions of the complete code. The updated code package is transmitted to a multi-platform framework. The multi-platform framework is configured to convert the updated code package into a second application program. The second application program and the first application program are configured to operate in different runtime environments.