Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / General Discussion

MSCOFF & PECOFF

A community discussion post from the original code:zIRON forum.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

MSCOFF & PECOFF

very nice Mr Colin.

thanks for that , but what PECOFF means , how can we use it.

http://www.freewebs.com/ogremagic/index.htm

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

PE coff is just the COFF format (MS version) with modifications for the PE executable file, the standard WIN32... .exe and .dll format.

and of course MSCOFF is the microsoft coff object files.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

really , i still don't get it.

so what is the difference between them, and in which case should i use them?

also , if i have a lib file "a static library" that has some functions , and i want to use one of them. how can i declare the prototype in my coff source file?

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

I already explained the difference.

PECOFF = .exe, .dll

COFF = .obj

Ziron does not yet support importing object or lib files, it can only produce obj files that may be linked with microsoft link.exe

in which case you would create an import just like for a dll, and call the functions as normal, then when linked with ms link the linker will link the calls to the object file.