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

4 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.

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