Richard E Maine wrote:
> 2. Faking procedure pointers. From dlsym you get back the address of the
> procedure to be called. How to then call a procedure with that address
> is ... tricky. This should become a lot simpler with the procedure
> pointers and C interop stuff in f2003.
Several compilers are coming out with implementations of the C Interop
stuff in F2003. Some are running beta tests now. This dl_open stuff
sounds like a great example/test to include in a test suite for UNIX
platforms. I also plan to write a test interface to a subset of OpenGL
to test the ability to directly call the C routines instead of using
wrappers. Are there other interesting tasks that people use non-portable
hacks to do which would be easier done by interfacing to (standard) C
(with standard/common libraries)? I will try to come up with a mini
example/test suite in the near future.
Thanks,
Aleksandar
|