Standart platform identification macros for GCC



Hi *

I write a crossplatform application on C/C++ and I use GCC. So when I
want to use some platform specific api I should use #ifdef directives.
I'm interesting in which macros should I check to determine the
platform (something like WIN32, UNIX, LINUX, etc.). I need only
"standart" macros that are always defined for a particular platform
port of gcc and standart headers that comes with it.

I'm interested in such platforms and platform information:

- Windows, version, 32 or 64 bits, processor type;
- Unix, concrete clone (Linux, FreeBSD, ...), 32 or 64 bits, processor
type;
- CYGWIN.

Thanks in advance.

.



Relevant Pages

  • Re: Turn on x86 Alignment Check?
    ... one test program and some reading of the GCC ... of the push, pop and orl instructions ... Limux on x86 and x86-64 just is not a suitable platform for this job. ...
    (comp.os.linux.development.apps)
  • Re: 64-bit AES
    ... I asked a question about implementing AESon a 64-bit platform ... in 64-bit mode GCC makes a lot of use of r9-r13. ... directly where it would read from the local stack in 32-bit mode GCC ... GCC does not use any 64-bit wide registers and takes advantage [in this ...
    (sci.crypt)
  • Re: Put method in specific memory
    ... GCC is not the entire toolchain, ... > nor is 'powerpc405' a self-sufficient moniker of a platform. ...
    (comp.arch.embedded)
  • Re: Sliding window and wrap-around
    ... This works on my platform (GCC, Linux, x86) but AFAIU, conversion ... promoted to int before performing the subtraction? ...
    (comp.lang.c)
  • Re: BLT installation failure
    ... I'm sorry I don't know how to fix your problem here...but what you are ... Jeff Hobbs states the following ... > 64-bit build on a 32-bit gcc or vice versa. ... So trying to build a 32-bit system on a 64-bit platform with gcc may be ...
    (comp.lang.tcl)