How to know which processor I'm targetting at runtime

Kris Warkentin kewarken@qnx.com
Tue Feb 11 20:05:00 GMT 2003


I have some ugly code that relies on a define from one of our
config/arch/tm*.h files.  Essentially we're just doing:

#define SOLIB_PROCESSOR [x86|mips|arm....]

so that we can do some setup elsewhere.  Is there a nice way to get which
architecture I'm running at runtime?  I'd like to get rid of our tm files if
possible.

cheers,

Kris



More information about the Gdb mailing list