
www.Usenet.com
| <-- __Chronological__ --> | <-- __Thread__ --> |
i haven't read the whole thread, sorry if i am repeating.
there is a functionality that may help you i think.
you can launch a process with ipcSkillProcess (that process would be you c
program).
when using this function, two additional channels are open, in addition on
stdin stdout stderr, for your program. they have file handle 3 and 4 i think
these special channels allow you to communicate with the skill code that
launched the process. precisely, you can write skill code to those
channels that will be executed in cadence and you can read the results
in the other channel.
this may allow you to communicate through global variables or through
function calls.
here is an example c code from cadence doc:
/*********************************************** Sample process for
executing SKILL commands* in parent
process.**********************************************/#include
"stdio.h"#define skill_cmd 3#define skill_result 4main(int argc, char
**argv){ int status; char s[100]; sprintf(s, "%s", "(let ()
(println \"Hello world \") (1 + 1))"); printf("Executing %s", s);
fflush(stdout); status = write(skill_cmd, &s[0], strlen(s)); status =
read(skill_result, &s[0], 100); s[status] = '\0'; printf("Result =
%s", s); fflush(stdout); exit(0);}hope this helps,stephane
"sampath" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
> is there anyway that i can mix skill and c code,
> I am looking for a way to do some runtime intensive operations in c and
> get the data into a skill code?
> can somebody tell a solution?
> sampath
>
| <-- __Chronological__ --> | <-- __Thread__ --> |