How to check if your app is running in 64bit

There are two ways to determine this: at runtime (i.e. in your running code), and at compile time (i.e. before the code is compiled). Let’s take a look at both options.

Runtime Check

Determines the size of a pointer.

Compile Time Check

Asks the compiler which architecture it compiles for.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.