An optimized memset standard library function assembly code generation method
A code generation and standard library technology, applied in the direction of electrical digital data processing, program control design, instruments, etc., can solve problems such as excessive redundancy and insufficient optimization
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0017] The technical solutions of the present application will be described in further detail below with reference to the drawings and embodiments.
[0018] The initialization of the array is usually done by the memset standard library function in the C standard. Due to compatibility considerations, the memset standard library function in the C language lags behind the assembly code written according to the target machine of the specific architecture in terms of speed. Based on the theoretical basis of optimization, the lower the program is, the easier the code is to schedule, and the more effective the use of the instruction set. The assembly code is generated by the compiler in combination with the hardware characteristics of the target machine, after compiling and optimizing the high-level language, merging code blocks and other operations. Therefore, in order to improve the processing performance of modern microprocessors, many standard library functions are embedded in t...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 