Skip navigation.
 
mlRe: How to tell when app will run in 64-bit mode?
FROM : Jon Gotow
DATE : Wed Feb 06 21:26:00 2008

At 12:01 PM -0500 2/6/08, Ben Allison wrote:
>#ifdef __LP64__
>bool in_64bit = true;
>#else
>bool in_64bit = false;
>#endif
>
>More importantly, if you have code that differs between 32bit and
>64bit, it is better to conditionally compile than it is to check
>during runtime.  Remember that an 'obese-binary' is basically 4
>copies of your program.


Yes, of course - that was going to be my approach by writing a little
obese helper app - different code would run depending on which
architecture and ABI got loaded.  But if you want to do something
different to someone else's app depending on whether it's 64 bit or
not, you have to go poke at it :-)

  - Jon

--
________________________________________________________________________
        Jon Gotow                    <email_removed>
    St. Clair Software              http://www.stclairsoft.com/
    Fax (540)552-5898              ftp://ftp.stclairsoft.com/

Related mailsAuthorDate
mlHow to tell when app will run in 64-bit mode? Jon Gotow Feb 6, 17:30
mlRe: How to tell when app will run in 64-bit mode? Ben Allison Feb 6, 18:01
mlRe: How to tell when app will run in 64-bit mode? Ben Allison Feb 6, 18:03
mlRe: How to tell when app will run in 64-bit mode? Ben Allison Feb 6, 18:12
mlRe: How to tell when app will run in 64-bit mode? Jon Gotow Feb 6, 18:20
mlRe: How to tell when app will run in 64-bit mode? Jon Gotow Feb 6, 18:25
mlRe: How to tell when app will run in 64-bit mode? Ben Allison Feb 6, 18:40
mlRe: How to tell when app will run in 64-bit mode? Jon Gotow Feb 6, 18:48
mlSolved: How to tell when app will run in 64-bit mode? Jon Gotow Feb 6, 20:41
mlRe: How to tell when app will run in 64-bit mode? Jon Gotow Feb 6, 21:26
mlRe: Solved: How to tell when app will run in 64-bit mode? Douglas Davidson Feb 6, 21:34
mlRe: How to tell when app will run in 64-bit mode? Markus Hitter Feb 6, 22:04
mlRe: How to tell when app will run in 64-bit mode? Helge Hess Feb 7, 01:39
mlRe: How to tell when app will run in 64-bit mode? Jon Gotow Feb 7, 16:17