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?
EDIT: Also, i planning to make it support lib files... does the assembler takes care of the lib files or is it the linker?
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
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?
With all the questions and lack of research, are you sure that writing an assembler is the best project for you, currently?
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.
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 :)
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.
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.