[OpenBIOS] C bindings.

Stefan Reinauer stepan at openbios.org
Sat Dec 18 16:36:46 CET 2004


Hi,

* Prasanna Kumar <pras_iitb at yahoo.com> [041218 12:24]:

> i. How does one get the address of C functions, which
> I can use while calling "C" functions in my forth
> code?

During C initialization you can do 

bind_func("forth-word-name", c_function_name );

then you can call void c_function_name(void) by calling forth-word-name
in forth. See arch/x86/boot.c and arch/x86/openbios.c

   Stefan



More information about the OpenBIOS mailing list