Lucia Cambise wrote:
does anyone know how data are stored (which is their structure, how they
are represented and so on ). Is there any useful document describing
data structure?
The implementation of Mozart is not well documented. But here are a few
things I can tell.
Data storage is relatively standard, and efficient. Mozart is written
in C++, and most data are stored in C++ objects. Those data may refer
to each other by references. "Small" integers (those that currently fit
in 28 bits) are themselves references, such that no memory is explicitly
allocated for them.
I think the most complex data structure is the one of records. What
makes it special is that the arity is stored in a separate object, such
that records with the same arity share that arity object. The proper
size of a record of width N is N+2 words (references) in memory.
Does that answer you question?
Cheers,
raph
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users