How do you produce coff obj files? What does it contain? My assembler would probably produce obj files to be used with linkers such as alink and golink.

EDIT: Also, i planning to make it support lib files... does the assembler takes care of the lib files or is it the linker?
Posted on 2005-05-09 00:29:33 by audioman

How do you produce coff obj files? What does it contain? My assembler would probably produce obj files to be used with linkers such as alink and golink.

EDIT: Also, i planning to make it support lib files... does the assembler takes care of the lib files or is it the linker?


http://www.google.com/search?hl=en&q=how+do+you+produce+coff+obj+files%3F
Posted on 2005-05-09 00:37:54 by SpooK
The official COFF (and more) reference is here: http://www.microsoft.com/whdc/system/platform/firmware/PECOFF.mspx .

With all the questions and lack of research, are you sure that writing an assembler is the best project for you, currently?
Posted on 2005-05-10 06:55:52 by f0dder
Goggle search has yet to turn up anything useful about COFF beyond the structure and that MSDN article.  Maybe one of these days a walkthrough will appear on how to take a sample application and produce a COFF obj file. I guess it is just a black art, you have to look at the structure and figure out how to make your assembler output that structure.
Posted on 2005-05-10 22:09:17 by ThoughtCriminal
The structure is all you need to know about COFF itself - topics as parsing, code generation, linking, etc. have very little to do with COFF itself. If you want to write an assembler or compiler, go pick up a textbook :)
Posted on 2005-05-11 09:20:33 by f0dder
Hi audioman,

It's the linker's job to take care of the libraries. MS link and Pelle's Polink are also able to handle COFF object files.
Posted on 2005-05-11 12:52:33 by Vortex