Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

6 results about "Calling convention" patented technology

In computer science, a calling convention is an implementation-level (low-level) scheme for how subroutines receive parameters from their caller and how they return a result. Differences in various implementations include where parameters, return values, return addresses and scope links are placed (registers, stack or memory etc.), and how the tasks of preparing for a function call and restoring the environment afterward are divided between the caller and the callee.

Dynamic link call conversion method and device

The invention discloses a dynamic link call conversion method and device, and the method comprises the steps: when symbol analysis and binding are carried out on a first component, the first component is dynamically linked to a first symbol in a first dynamic link library, and the first symbol does not establish a dynamic link symbol binding relation with the first component; the dynamic linker generates a first table item for calling a conversion table if the first component is not in the first dynamic link library and the calling agreement used by the first component and the first dynamic link library is different, the first table item comprises a first instruction and a second instruction, and the first instruction is used for instructing to load a first address of a first symbol in a memory to a specified first storage container; the second instruction is used for indicating to jump to the calling converter; the dynamic linker fills a second table entry in the default GOT with a second address of the first table entry in the memory; and the default GOT belongs to the first component, so that the effect of call conversion of the cross-call agreement can be realized without manual intervention of a programmer or recompiling a program.
Owner:CHONGQING XINLIANXIN INTELLIGENT TECHNOLOGY CO LTD

Compiling implementation method and device for ARM processor supporting posit floating point format

The application discloses a kind of compiling implementation method and device for ARM processor supporting POSIT floating point format, the method includes: in compiling front end, the extension of POSIT type is carried out to lexical and syntax analysis, semantic analysis extension and intermediate representation generation extension, lexical and syntax analysis extension includes the keyword of newly added POSIT type, semantic analysis extension includes the semantic checking rule of increasing for POSIT type, intermediate representation generation extension includes the corresponding LLVM IR instruction of generating for the various operation operations of POSIT type;In compiling middle end, the IR type system extension of POSIT type is carried out, IR instruction set extension and optimization channel extension;In compiling back end, instruction selection and mapping, register allocation and call convention and instruction scheduling and emission are configured for POSIT type.The application can significantly improve the comprehensiveness, usability and compiler performance of compiling.
Owner:NAT UNIV OF DEFENSE TECH

An openharmony-oriented end-side speech recognition optimization system

This invention relates to an edge-side speech recognition optimization system for OpenHarmony, belonging to the field of speech recognition. The system includes a bidirectional information interaction layer (ArkTS), a cross-language N-API call layer, and a native inference execution layer. The ArkTS layer segments real-time recordings according to a preset time step and submits them asynchronously. The N-API layer achieves automatic resource release through `napi_wrap` binding and ensures safe string transmission through explicit allocation of independent buffers. The native layer receives incremental audio slices, performs context-dependent incremental inference, and returns the full recognition result by enforcing a unified floating-point calling convention to align the binary interface. This invention achieves stable operation and near real-time interactive experience for local speech recognition in the OpenHarmony environment.
Owner:KYLIN CORP

A dynamic link call conversion method and device

The present application discloses a dynamic link call conversion method and device, wherein the method includes: if, when performing symbol resolution and binding for a first component, the first component is dynamically linked to a first symbol in a first dynamic link library, and the first symbol has not established a dynamic link symbol binding relationship with the first component, and the first component and the first dynamic link library use different calling conventions, then a dynamic linker generates a first table entry in a call conversion table, the first table entry includes a first instruction and a second instruction, the first instruction is used to instruct to load the first address of the first symbol in the memory to a specified first storage container, and the second instruction is used to instruct to jump to a call converter; the dynamic linker fills the second address of the first table entry in the memory into the second table entry in the default GOT table; the default GOT table belongs to the first component, thereby achieving the effect of call conversion across calling conventions without the need for manual intervention by the programmer or recompiling the program.
Owner:上海芯联芯智能科技有限公司

C language unit test generation method based on reference test case

The invention provides a C language unit test generation method based on a reference test case, and belongs to the field of software engineering. Comprising the following steps: constructing a C project symbol index knowledge base; performing test case migration association retrieval; and generating a test case based on the reference test mode. According to the method, the pairwise resource'application / release 'mode is extracted and forcibly applied from the existing test, so that the problem that memory leakage may be introduced into the generated C language test case is solved; by injecting the test mode extracted from the real code, the generated test case is highly consistent with the tested item in data structure initialization, function call agreement and code style, and the readability and maintainability of the test code are improved; the expert knowledge and the generation capability of the large language model are deeply fused, and the test environment establishment and resource cleaning work are fully automated, so that the cost and time for compiling a high-quality test for a complex C language project are remarkably reduced.
Owner:BEIHANG UNIV +1