Program Startup Method Using Segmented Code Loading
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing program startup methods are inefficient for large programs, as they require all startup codes to be loaded into RAM at once, leading to slow startup speeds.
Innovation Solution
The method involves loading and executing startup codes in segments from an external memory to RAM, with each segment being different and sized appropriately for the RAM's capacity, allowing for incremental loading and execution.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If all startup codes are loaded into RAM at once, then the program can be executed, but the startup speed becomes slow for large programs
Solution Approach 1:
The patent divides the startup codes into multiple code segments stored in external memory. Instead of loading all codes at once, the system loads and executes segments progressively. This segmentation allows the RAM to handle only the necessary code portions at any given time, significantly improving startup speed for large programs while maintaining reliable execution.
2Reliability
If all startup codes are loaded into RAM at once, then the program can be executed, but the RAM size requirement increases
Solution Approach 1:
The patent segments startup codes into multiple smaller segments stored in external memory. Each segment is small enough to fit in RAM individually, allowing the system to load only the necessary segments when needed. This eliminates the need for large RAM capacity to store all startup codes simultaneously, reducing hardware requirements.
Solution Approach 2:
The patent extracts the majority of startup codes from RAM and stores them in external memory. Only the essential codes needed for initial execution remain in RAM, while the rest are loaded from external memory as needed. This extraction significantly reduces the required RAM size while maintaining program execution capability.
3Speed
If startup codes are loaded incrementally in segments, then the startup speed improves, but the system complexity increases
Solution Approach 1:
The patent pre-divides startup codes into segments and stores them in external memory before program execution. A code loading mechanism is pre-configured to automatically load and execute segments in the correct sequence. This preliminary preparation simplifies the runtime process, as the system only needs to manage segment loading rather than handling all codes at once, reducing operational complexity.
Data Source
AI summary
A program startup method, an electronic system, and a non-transitory storage medium are disclosed in the embodiments of the present disclosure. The method includes detecting a startup requirement for a program, startup codes of the program being at least partially stored in an external memory, and a part of the startup codes stored in the external memory comprising a plurality of code segments; and performing an operation of loading one of the code segments of the external memory to a RAM and running the one of the code segments multiple times. The one of the code segments loaded each time is different with each other. A size of each code segment is less than or equal to a size of an area of the RAM capable of executing each code segment.

