Re: how to detect the compile is 32 bits or 64 bits?
- From: Tim Prince <timothyprince@xxxxxxxxxxxxx>
- Date: Sat, 05 Aug 2006 15:58:52 GMT
steve yee wrote:
i want to detect if the compile is 32 bits or 64 bits in the sourceYou invite bugs, as well as taking the question off the topic of standard C, if you write source code which has to change. The usual question is about (sizeof)<various pointer types>. If your question is simply about (sizeof)int, you create problems by assuming it is determined by whether you have a 32- or 64-bit platform. If you insist on unions of pointers and ints, knowing whether it is 32 or 64 bits won't save you. More so, if you are one of those who writes code which depends on (sizeof)(size_t x).
code itself. so different code are compiled respectively. how to do
this?
.
- Follow-Ups:
- Re: how to detect the compile is 32 bits or 64 bits?
- From: Walter Roberson
- Re: how to detect the compile is 32 bits or 64 bits?
- References:
- how to detect the compile is 32 bits or 64 bits?
- From: steve yee
- how to detect the compile is 32 bits or 64 bits?
- Prev by Date: Re: Determining Variable type
- Next by Date: Re: how to detect the compile is 32 bits or 64 bits?
- Previous by thread: Re: how to detect the compile is 32 bits or 64 bits?
- Next by thread: Re: how to detect the compile is 32 bits or 64 bits?
- Index(es):