preprocessor


DDK preprocessor directives


Does the DDK's build environments pass preprocessor defines to code to specify x86/ia64/x64 for the code to use with #ifdef, etc.?
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.
Yes. Look at Predefined Macros Also you can see a lot of such statements in DDK include files:
#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

Related Links

How to Set Active Target in XCode 4.5+
Preprocessor assertions in arduino
expanding a macro within a macro definition
GNU-M4: Strip empty lines
Escaping space in OpenCL compiler arguments
Does Corona have preprocessor statements so I can execute Lua code for specific devices?
Preprocessing in C++
Truncate string in cpp (preprocessor)
C++ precompiler conditionally include code
DDK preprocessor directives
Preprocessor, Postprocessor, Geometric Processor and NC processor
Gfortran pre-processor directives for Different Operating systems
Good data set for Pre-processing
IDE inserts incorrect #include statement
Save string in C preprocessor
Fortran preprocessing with Portland compiler

Categories

HOME
jmeter
saml-2.0
gradient
r-googlesheets
ado.net
interpolation
python-multithreading
android-json
flume
computer-science
performancepoint
fosrestbundle
syntaxnet
project-intu
do-while
powershell-v5.0
video-editing
soci
pyramid
sar
visual-glitch
froala
jasmine-node
handler
ceylon
volatile
dsx-desktop
hreflang
android-gridview
classcastexception
python-import
numpy-broadcasting
docfx
google-earth-engine
cin
skylink
postgresql-8.4
oracle-service-bus
importerror
wc
procfile
fwrite
jboss-4.2.x
robomongo
mschart
fclose
avx
arules
java-websocket
cpu-cache
cmp
reachability
cudd
redistributable
actor-platform
microstation
burrows-wheeler-transform
model-associations
appscale
hadoop-partitioning
wiredep
roadkill-wiki
morton-number
ons-api
rubaxa-sortable
android-launcher
cgi-bin
apache-spark-1.3
pseudo-class
cocos3d
psr-4
named-parameters
dtmf
cffile
actiondispatch
android-icons
preload
xcode3.2
oracle-enterprise-linux
httponly
kqueue
cross-database
expression-blend-4
jquery-tools
timthumb
qglwidget
objective-j
ie-compatibility-mode
isapi-extension
interop-domino
asynchronous-wcf-call
change-management

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App