carlosalbertomst
carlosalbertomst

Reputation: 513

Erlang port driver communicating with C program

If I want my Erlang process connect with a C shared lib I use Erlang linked in port driver.

As I want my C program stores some data structures to respond to erlang calls, I must use global variables.

Is there any problem?

Thanks!

Upvotes: 1

Views: 347

Answers (1)

Gordon Guthrie
Gordon Guthrie

Reputation: 6274

You are running a c-programme in its own process and talking to it over a pipe - Erlang can't see the memory space of your C programme and doesn't care how you write it. You Erlang VM is not dependant on your port driver - that's what the architecture is for.

Upvotes: 1

Related Questions