s7******@gmail.com said:
Is there any way I can check to see what agriculture (x86_64, ppc,
ia32, etc) I am compiling with using the preprocessor? All help is
appreciated.
SM Ryan has already given you a reply that should field most of your
questions, but never forget you can grow your own preprocessor directives
in the event that your implementation doesn't identify itself so
conveniently. Keep them well-watered, and don't chaff at the extra workload
involved - it's amaizing just how often such a simple solution can work
really well.
Another way to deal with this problem is to crop it out completely and write
the code in a hardy perennial style, so that it doesn't matter what kind of
soil you use - the code can grow anywhere, and doesn't need any
preprocessor directives at all. In my experience, about 95% of the code can
be written that way (or even 100% in many cases), with the rest being
carefully isolated to avoid cross-pollination.
Apologies in advance (to careful readers only) for the corny reply.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)