&quot;Local variables&quot; can be allocated to global addresses by the compiler&#x2F;linker toolchain,  barring recursive functions. Runtime code loading may require a bit of extra care, but I wonder if safety-critical software really needs DLLs.