[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbios
Subject:    Re: [OpenBIOS] C bindings.
From:       Stefan Reinauer <stepan () openbios ! org>
Date:       2004-12-18 15:36:46
Message-ID: 20041218153646.GC9186 () openbios ! org
[Download RAW message or body]

Hi,

* Prasanna Kumar <pras_iitb@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

-- 
OpenBIOS                 http://openbios.org/
Mailinglist:       http://lists.openbios.org/
Free your System - May the Forth be with you
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic