On 3/7/13, Walter Bright <[email protected]> wrote: > 1. all the supported file formats were completely encapsulated and > modularized > For some idea of how that can work, see libmscoff.c and scanmscoff.c
DDL seems to do a decent job of abstracting things, e.g.: OMF loader: http://dsource.org/projects/ddl/browser/trunk/ddl/omf COFF loader: http://dsource.org/projects/ddl/browser/trunk/ddl/coff And the root dir: http://dsource.org/projects/ddl/browser/trunk/ddl Anyway I'm not suggesting it's a complete implementation, but it might be worth taking a look. It's BSD licensed, hopefully that means it's ok to look at and maybe extract some useful code or ideas from it. >From the source comments it appears Don Clugston also worked on this for some time.
