Long time listener, first time caller. I\'m aware this is a somewhat obscure question, and don\'t expect too much. :-)
I have the following Ada files:
gr
I'll do the best I can with this, given not much Perl knowledge.
It looks to me like the Dynaloader in perl is a utility that lets you load dynamicly loadable libraries (lib*.so's on Unix systems) into a perl program.
For that to work for an Ada program, there are several things you'll need to take into account.
C_yourprogramname
, but don't hold me to that. Even if you are implementing a library of some sort, the elaboration should be run first (execpt in some special circumstances, that do not apply here). However, if you want a routine to be a library routine called from outside of Ada, you generally don't want a "main", so there are some extra steps. How to do this with Gnat is described in their user guide, but in general it involves telling the compiler to not make a "main", calling adainit
before running any Ada routine from outside, and calling adafinal
when you are all done.