Re: [quirks-uvm-devel] Library conception
Status: Pre-Alpha
Brought to you by:
teodor
From: Sergei L. <sl...@is...> - 2002-04-09 13:31:11
|
Max wrote: > Sergei Lodyagin wrote: > >> Regarding this, I think about whether to make a binary code cat - >> indifferent. >> For example. You have 2 files: >> >> module1.ru >> module2.ru >> >> Then I can paste together them in one module by `cat': >> >> cat module1.ru module2.ru > module.ru. >> >> >> It is when I found a feature but don't known is it useful or not >> (but actually, the coding of our binary files makes possible such >> procedures). >> >> How do you think, is it useful feature? >> > It depends on library architecture you choise. > How do you intend to build it? > For instance I need to call a procedure from other module. > I need ProcedureId to do this. > How can I know ProcedureId by Module Name + Procedure Name? > All procedures from a module are numerated from 1. Right? > If you merge two modules how can you distinguish first procedure > from first module and from second module? It seems to me the only approach we should use for linkage - finding of procedures by their names (in the given module). In this case we don't need recompile programs for use a new version of a library. By the way, most link program s perform lookup of procedures by names. Thus, I think, loading of Quirks module is a two step process: 1. The loading of module itself (at this stage VM assigns ProcedureId-s to all procedures in the module. 2. The linking of the new modules with existing ones. At this stage we use procedure names for lookup procedures and make substitution for procedure Id-s in the call instrunctions. -- Sergei |