简体   繁体   中英

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!

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM