awesome-repositories.com
Blog
awesome-repositories.com

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectDespreCum realizăm clasamentulPresăServer MCP
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
libffi avatar

libffi/libffi

0
View on GitHub↗
4,281 stele·817 fork-uri·C·4 vizualizărisourceware.org/libffi↗

Libffi

libffi este o bibliotecă de tip foreign function interface (FFI) care permite apelarea funcțiilor scrise în alte limbaje la runtime. Servește drept wrapper ABI multi-arhitectură și generator dinamic de call frame-uri, permițând execuția funcțiilor externe pe baza descrierilor de runtime ale tipurilor de argumente și valorilor returnate.

Proiectul oferă o interfață portabilă pentru a gestiona convenții de apelare diverse pe diferite arhitecturi hardware și sisteme de operare. Include capabilități pentru alocarea de closure-uri executabile, care permit codului extern să declanșeze callback-uri în interiorul unui limbaj gazdă prin jump tables stocate în memorie executabilă.

Dincolo de invocarea funcțiilor, biblioteca gestionează stub-uri de asamblare de nivel jos și utilizează caching pentru planurile de apelare, reducând overhead-ul mapării tipurilor către registre. Include, de asemenea, un convertor de scripturi de versiune binară pentru transformarea scripturilor de versiune bazate pe simboluri între diferite formate de linker.

Features

  • Foreign Function Interfaces - Provides a foreign function interface to call functions in other languages by dynamically constructing call frames.
  • Dynamic Call Frame Construction - Constructs function call stacks at runtime by arranging arguments in memory according to hardware calling conventions.
  • Assembly Stubs - Provides low-level assembly stubs to bridge generic function calls to hardware-specific register and stack layouts.
  • Multi-Architecture ABI Wrappers - Wraps diverse calling conventions across multiple hardware architectures and operating systems.
  • Calling Convention Abstractions - Supports various calling conventions like stdcall, thiscall, and fastcall across different hardware architectures.
  • Dynamic Call Frame Generators - Generates function call frames at runtime based on dynamic descriptions of argument and return types.
  • Language Interoperability - Enables execution of code across different programming languages using a portable interface for various calling conventions.
  • Portable Function Invocations - Executes compiled functions regardless of the target hardware calling convention through a portable interface.
  • Executable Memory Allocations - Allocates memory regions with execution permissions to store jump tables for redirecting foreign calls.
  • Function-Pointer Callbacks - Creates executable closures that allow native libraries to trigger logic and functions within the host language.
  • Executable Closure Allocations - Allocates memory with execution permissions to create function closures for external callbacks.
  • Executable Closure Providers - Generates executable closures that allow external programs to trigger callbacks within the host language via jump tables.
  • Call Plan Caches - Caches pre-calculated argument layouts to reduce the overhead of mapping types to registers for frequent calls.
  • General Libraries - Portable foreign-function interface library for C.
  • Biblioteci de uz general - Portable foreign-function interface library.
  • Scripting and Bindings - Portable library for implementing foreign function interfaces.

Istoric stele

Graficul istoricului de stele pentru libffi/libffiGraficul istoricului de stele pentru libffi/libffi

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Întrebări frecvente

Ce face libffi/libffi?

libffi este o bibliotecă de tip foreign function interface (FFI) care permite apelarea funcțiilor scrise în alte limbaje la runtime. Servește drept wrapper ABI multi-arhitectură și generator dinamic de call frame-uri, permițând execuția funcțiilor externe pe baza descrierilor de runtime ale tipurilor de argumente și valorilor returnate.

Care sunt principalele funcționalități ale libffi/libffi?

Principalele funcționalități ale libffi/libffi sunt: Foreign Function Interfaces, Dynamic Call Frame Construction, Assembly Stubs, Multi-Architecture ABI Wrappers, Calling Convention Abstractions, Dynamic Call Frame Generators, Language Interoperability, Portable Function Invocations.

Care sunt câteva alternative open-source pentru libffi/libffi?

Alternativele open-source pentru libffi/libffi includ: pyo3/pyo3 — This project provides a framework for binding Rust and Python, enabling the creation of native extension modules and… node-ffi/node-ffi — node-ffi is a foreign function interface library for Node.js that enables calling functions from native C dynamic… pyodide/pyodide — This project provides a full Python interpreter compiled to WebAssembly, enabling the execution of Python code and… java-native-access/jna — JNA is a foreign function interface and native memory mapper that allows Java applications to call functions in shared… y-crdt/y-crdt — This project is a memory-safe library implemented in Rust that provides a high-performance engine for managing shared,… bytedeco/javacpp — JavaCPP is a JNI C++ bridge and foreign function interface that provides a binding generator, a native library loader,…

Alternative open-source pentru Libffi

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Libffi.
  • pyo3/pyo3Avatar PyO3

    PyO3/pyo3

    15,344Vezi pe GitHub↗

    This project provides a framework for binding Rust and Python, enabling the creation of native extension modules and the embedding of the Python interpreter within host applications. It functions as a cross-language interoperability library that facilitates the execution of scripts, the definition of classes, and the sharing of data structures across the boundary of the two runtimes. The framework distinguishes itself through the use of procedural macros to automate the generation of boilerplate code, simplifying the process of exposing native functions and data types. It employs type-level m

    Rustbindingffipython
    Vezi pe GitHub↗15,344
  • node-ffi/node-ffiAvatar node-ffi

    node-ffi/node-ffi

    4,322Vezi pe GitHub↗

    node-ffi is a foreign function interface library for Node.js that enables calling functions from native C dynamic libraries without writing manual C++ bindings. It serves as a system for loading shared objects and DLLs into process memory, translating JavaScript values into binary representations, and executing external binaries at runtime. The project utilizes a wrapper around the libffi library to construct call frames and execute native functions with dynamic arguments. It distinguishes itself by providing a native memory manager for allocating raw pointers and a mapping system that connec

    JavaScript
    Vezi pe GitHub↗4,322
  • pyodide/pyodideAvatar pyodide

    pyodide/pyodide

    14,685Vezi pe GitHub↗

    This project provides a full Python interpreter compiled to WebAssembly, enabling the execution of Python code and scientific libraries directly within web browsers and server-side environments. By bridging the gap between language runtimes, it allows developers to run computational tasks, manage packages, and perform data analysis in client-side environments without requiring a backend server. The platform distinguishes itself through a comprehensive foreign function interface that enables bidirectional data exchange, object proxying, and function calling between Python and JavaScript. It in

    Pythonpythonwebassembly
    Vezi pe GitHub↗14,685
  • java-native-access/jnaAvatar java-native-access

    java-native-access/jna

    8,916Vezi pe GitHub↗

    JNA is a foreign function interface and native memory mapper that allows Java applications to call functions in shared native libraries without writing custom JNI wrapper code. It serves as a JNI alternative framework for invoking C functions and mapping native data structures using high-level interfaces. The library distinguishes itself through its ability to translate Java objects and primitives into C-style structs, unions, and pointers for cross-platform memory exchange. On Windows, it provides a dedicated toolkit for interacting with Component Object Model objects using both early and la

    Java
    Vezi pe GitHub↗8,916
  • Vezi toate cele 30 alternative pentru Libffi→