RFC: Plugins support
ORC has support for extending the current opcodes externally through orc_opcode_register_static
, an example can be found at examples/volscale.c
. The problem is that orcc won't generate such new opcodes (for obvious reasons) and everything has to be done programmatically instead of the generic file based .orc mechanism. My impression is that ORC extensibility is still premature, but I'd like to understand what would be the preferable way.
Doing a simple plugin loading system is easy, but given that ORC does not depend on GLib the work to be done is kind of repetitive and complex for corner cases (Windows for example).
So, does a plugin system would be desirable? Are there any restrictions to bring GLib dependency?