awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
libffi avatar

libffi/libffi

0
View on GitHub↗
4,281 stars·817 forks·C·4 vuessourceware.org/libffi↗

Libffi

libffi est une bibliothèque d'interface de fonction étrangère (FFI) qui permet d'appeler des fonctions écrites dans d'autres langages au moment de l'exécution. Elle sert de wrapper ABI multi-architecture et de générateur de frames d'appel dynamiques, permettant l'exécution de fonctions externes basées sur des descriptions de types d'arguments et de valeurs de retour au runtime.

Le projet fournit une interface portable pour gérer diverses conventions d'appel à travers différentes architectures matérielles et systèmes d'exploitation. Il inclut des capacités d'allocation de fermetures exécutables, permettant au code étranger de déclencher des callbacks au sein d'un langage hôte via des tables de saut stockées en mémoire exécutable.

Au-delà de l'invocation de fonctions, la bibliothèque gère des stubs d'assembleur bas niveau et utilise la mise en cache des plans d'appel pour réduire la surcharge liée au mappage des types vers les registres. Elle inclut également un convertisseur de script de version binaire pour transformer les scripts de version basés sur des symboles entre différents formats d'éditeur de liens.

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.
  • Bibliothèques généralistes - Portable foreign-function interface library.
  • Scripting and Bindings - Portable library for implementing foreign function interfaces.

Historique des stars

Graphique de l'historique des stars pour libffi/libffiGraphique de l'historique des stars pour libffi/libffi

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Alternatives open source à Libffi

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Libffi.
  • pyo3/pyo3Avatar de PyO3

    PyO3/pyo3

    15,344Voir sur 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
    Voir sur GitHub↗15,344
  • node-ffi/node-ffiAvatar de node-ffi

    node-ffi/node-ffi

    4,322Voir sur 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
    Voir sur GitHub↗4,322
  • pyodide/pyodideAvatar de pyodide

    pyodide/pyodide

    14,685Voir sur 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
    Voir sur GitHub↗14,685
  • java-native-access/jnaAvatar de java-native-access

    java-native-access/jna

    8,916Voir sur 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
    Voir sur GitHub↗8,916
Voir les 30 alternatives à Libffi→

Questions fréquentes

Que fait libffi/libffi ?

libffi est une bibliothèque d'interface de fonction étrangère (FFI) qui permet d'appeler des fonctions écrites dans d'autres langages au moment de l'exécution. Elle sert de wrapper ABI multi-architecture et de générateur de frames d'appel dynamiques, permettant l'exécution de fonctions externes basées sur des descriptions de types d'arguments et de valeurs de retour au runtime.

Quelles sont les fonctionnalités principales de libffi/libffi ?

Les fonctionnalités principales de libffi/libffi sont : 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.

Quelles sont les alternatives open-source à libffi/libffi ?

Les alternatives open-source à libffi/libffi incluent : 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,…