Generic interface to the four object module file formats supported.
Instead of using virtual functions (i.e. virtual dispatch) it uses
static dispatch. Since config.objfmt never changes after initialization
of the compiler, static branch prediction should make it faster than
virtual dispatch.
Making static dispatch work requires tediously repetitive boilerplate,
which we accomplish via string mixins.
Generic interface to the four object module file formats supported. Instead of using virtual functions (i.e. virtual dispatch) it uses static dispatch. Since config.objfmt never changes after initialization of the compiler, static branch prediction should make it faster than virtual dispatch.
Making static dispatch work requires tediously repetitive boilerplate, which we accomplish via string mixins.