As for the documentation I can recommend
- http://blogs.msdn.com/freik/archive/category/12430.aspx
- MSDN
- the PE-COFF v8 document recently updated by MS
(http://www.microsoft.com/whdc/system/platform/firmware/PECOFF.mspx)
- the ABI document that comes with some MSVC versions
Thank you for the pointers, and thanks to H. Verbeet for the link as well!
That looks like some fun reading :/ Anyway, it seems easier than porting gcc to a new architecture from scratch ;)
Cheers, Kuba