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/
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/






Cocoa mail archive

