1

DDK のビルド環境は、プリプロセッサ定義をコードに渡して、コードで使用する x86/ia64/x64#ifdefなどを指定しますか?

4

2 に答える 2

0

From what I've seen it does not.

However, when setting up your makefile, make i385, amd64 and ia64 directories and store your separate code files in those.

Then, in your sources file, use the I386_SOURCES=, AMD64_SOURCES= and IA64_SOURCES= vars, respectively, to specify the source files.

This works with .asm files, and should work with all other .c files as well.

于 2012-06-01T16:22:33.307 に答える
0

はい。事前定義されたマクロを見てください。また、DDK インクルード ファイルには、このようなステートメントがたくさんあります。

#if defined(_M_MRX000) || defined(_M_ALPHA) || defined(_M_PPC) || defined(_M_IA64) || defined(_M_AMD64)
#define UNALIGNED __unaligned
#if defined(_WIN64)
#define UNALIGNED64 __unaligned
#else
#define UNALIGNED64
#endif
#else
#define UNALIGNED
#define UNALIGNED64
#endif
于 2012-06-01T21:00:33.657 に答える