Compiler as dll
Christopher Wright
dhasenan at gmail.com
Wed Jan 28 16:01:09 PST 2009
grauzone wrote:
> John Reimer wrote:
>> ddl does not work for memory sharing like normal dll's, where multiple
>> applications have access to a single dll at runtime. It appears that
>> such support would be quite difficult to implement and moves in the
>> direction of operating system features.
>
> Couldn't this be achieved by simply mmap()-ing the file contents into
> memory? mmap() normally shared the memory pages with other processes.
DDL, after loading the library into RAM, has to fix up type information.
This requires altering the loaded data. Therefore, DDL can't share
everything, and the things it can share are fragmented.
More information about the Digitalmars-d
mailing list