foundationdb/contrib/Implib.so/arch
Vaidas Gasiunas 6aba6ceb8a
libfdb_c_shim: Load all symbols at once in a thread-safe way; remove unused options of implib.so (#9293)
2023-02-02 19:37:24 +01:00
..
aarch64 Generate a shim library for the FDB C API (#7506) 2022-07-08 16:28:35 +02:00
common libfdb_c_shim: Load all symbols at once in a thread-safe way; remove unused options of implib.so (#9293) 2023-02-02 19:37:24 +01:00
x86_64 Generate a shim library for the FDB C API (#7506) 2022-07-08 16:28:35 +02:00
README.md Generate a shim library for the FDB C API (#7506) 2022-07-08 16:28:35 +02:00

README.md

This folder contains target-specific config files and code snippets.

Basically to add a new target one needs to provide an .ini file with basic platform info (like pointer sizes) and code templates for

  • shim code which checks that real function address is available (and either jumps there or calls the slow path)
  • the "slow path" code which
    • saves function arguments (to avoid trashing them in next steps)
    • calls code which loads the target library and locates function addresses
    • restores saved arguments and returns