>>>>> "David" == David McNab <[EMAIL PROTECTED]> writes:
> Hi, Following on from earlier email observing the relative slowness of > calling funcs in dynamically loaded shared libs... > I've thought instead of creating gforth primitive words which directly > call the C funcs I need, and building gforth to link against the > needed shared libs. > How do I do this? I can't see anything in the manual? AFAIK that's not documented. Just have a look at the file `prim'. Here you can add primitives, which will be build into a C-source, when you run `make'. Just copy some of the existing definitions as a starting point. There are some helpful comments at the top of the file. Your primitives will then end up as code fragmens in function `engine(..)' in engine/engine.c. You might want to add include-files there. Then you'll have to find out how to patch makefiles to link everything as you need. So far I only added inline routines to `prim', so I can't help you with that... David -- GnuPG public key: http://user.cs.tu-berlin.de/~dvdkhlng/dk.gpg Fingerprint: B17A DC95 D293 657B 4205 D016 7DEF 5323 C174 7D40 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
