BindBC codegen survey
Ogion
ogion.art at gmail.com
Tue Sep 2 10:41:30 UTC 2025
I’m the developer of BindBC-Allegro5.
On Monday, 25 August 2025 at 10:40:18 UTC, IchorDev wrote:
> `bindbc-allegro5` doesn't wrap its function pointers in a
> regular function (most official BindBC libraries do this now)
I considered using wrappers but was concerned about possible
performance impact on debug builds. The overhead of uninlined
wrappers in hot parts of code is not negligible.
> For most use-cases static bindings are simpler.
Static bindings have a compile-time dependency on the
dynamic/import libraries. I’d say that dynamic bindings are
simpler for a casual user.
More information about the Digitalmars-d
mailing list