BSD Ports

devel/dyncall 1.4_1 DragonFly

Highly dynamic multi-platform foreign function call interface library

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ISCL
Categories
devel
Package size
31.3 KiB, 101.0 KiB installed

Description

The dyncall library encapsulates architecture-, OS- and compiler-specific function call semantics in a virtual "bind parameters from left to right and then call" interface allowing programmers to call C functions in a completely dynamic manner. In other words, instead of calling a function directly, the dyncall library provides a mechanism to push the function parameters manually and to issue the call afterwards. This means, that a program can determine at runtime what function to call, and what parameters to pass to it. The library is written in C and assembly and provides a very simple C interface to program against.

The library comes in very handy to power flexible message systems, dynamic function call dispatch mechanisms, closure implementations or even to bridge different programming languages. When it comes to language bindings, the dyncall library provides a clean and portable C interface to dynamically issue calls to foreign code using small kernels written in assembly. Instead of providing code for every bridged function call, which unnecessarily results in code bloat, only a couple of instructions are used to invoke every possible call.

In the other systems

SystemPortVersion
DragonFlydevel/dyncall1.4_1
FreeBSDdevel/dyncall1.4_1
OpenBSDdevel/dyncall1.1p1
HardenedBSDdevel/dyncall1.4_1
GhostBSDdevel/dyncall1.4_1

Install

Binary package:

pkg install dyncall

From DPorts:

cd /usr/dports/devel/dyncall && make install clean

Dependencies

No port depends on this one.