Compiling AMD64 .sys files from assembler (.asm) code

yukichigai

Diamond Member
Apr 23, 2003
6,404
0
76
Right, so I've got some assembler code, suitable for making into a device driver. Well, under 32-bit windows. The difficulty is that I need to make it into a 64-bit compatible .sys file. I'm having trouble understanding how to create a .sys file for 32-bit windows out of asm code (with the compilers I have, anyway) that doing so for 64-bit seems, well, freakin' impossible. I get the distinct impression that I need a) different tools, and even then I'll also need b) a different procedure to make a working .sys file.

Incidentally, I feel it important to point out the fact that college in no way prepared me for this real world experience, especially since I graduated with a Bachelor's in Computer Science. :p
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
You need tools capable of outputting a 64-bit binary which may or may not be the current set you're using, it's impossible to tell since you haven't said what you're using.
 

yukichigai

Diamond Member
Apr 23, 2003
6,404
0
76
Originally posted by: Nothinman
You need tools capable of outputting a 64-bit binary which may or may not be the current set you're using, it's impossible to tell since you haven't said what you're using.
I've got a couple compilers, including Visual C++ 2k5 and Borland. I've also got the Win 2k3 DDK, which includes the ml64 ASM compiler. I'm assuming the latter is the ideal one to use, but the damn DDK doesn't include any (intelligible) documentation regarding how to make a sys file specifically, or detailing the numerous syntax changes in the asm code it uses for compilation.