Allocation in erl_interface

Corrado Santoro <>
Thu Oct 20 10:28:31 CEST 2005


Dear all,


I'm using ports to perform a communication between an erlang program and 
a C one.

In the C program, I'm using erl_XXX function to extract data from 
incoming messages; I'm wondering if each call to a erl_XXX function 
(e.g. erl_element, erl_hd, erl_tail) perform a new allocation, so the 
return term must be then deallocated by means of erl_free_term.

Any suggestion?

--Corrado


-- 
======================================================
Eng. Corrado Santoro, Ph.D.

University of Catania - Engineering Faculty
Department of Computer Science and
Telecommunications Engineering
Viale A. Doria, 6 - 95125 CATANIA (ITALY)

Tel: +39 095 7382380
      +39 095 7387035
      +39 095 7382365
      +39 095 7382364

VoIP: sip:

Fax: +39 095 7382397

EMail: 
Personal Home Page:
             http://www.diit.unict.it/users/csanto

NUXI Home Page:
             http://nuxi.iit.unict.it
======================================================




More information about the erlang-questions mailing list