j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Hi All,
I am also interested in knowing the answer to the questions asked by Sachin.
i. How does one get the address of C functions, which I can use while calling "C" functions in my forth code?
Thanks in advance.
Regards, Prasanna
Hi all,
I want to call c functions from my forth code.
In the mailing list i found following>
Call C-functions from forth code by pushing the address of the function on the stack. Something like
call ( function_addr -- <whatever> )
Please tell me how can I get the address of the c function??
Please let me know if there are other issues involved in this as I am very little aware of the whole system trying to get familiar with the things.
Thanks in Advance
Sachin
__________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250
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