On 6/28/11 12:01 PM, Andrew Johnson wrote:
> Oh, and one more reason: The regular darwin i386 class is LP64 anyway, meaning
> longs and pointers are 64-bits wide even when ARCH_CLASS is i386.
Hi, Andrew.
I'm confused by this. Are you sure?
On a MacBook Pro running a 32-bit kernel, your test program
prints 32.
On my Mac running a 64-bit kernel, it prints 64. If I build it
as a fat binary by passing "-arch i386" and "-arch x86_64" as
options to gcc it prints 32 if I run the i386 machine code and
64 if I run the x86_64 machine code. I did this with the arch
command:
$ lipo -info main
Architectures in the fat file: main are: i386 x86_64
$ arch -arch i386 ./main
32
$ arch -arch x86_64 ./main
64
Lewis
- References:
- Sequencer news: latest snapshot Benjamin Franksen
- Re: Sequencer news: latest snapshot J. Lewis Muir
- Re: Sequencer news: latest snapshot Benjamin Franksen
- Re: Sequencer news: latest snapshot Andrew Johnson
- Navigate by Date:
- Prev:
Re: Sequencer news: latest snapshot Andrew Johnson
- Next:
problem using asyn 4-15 with VxWorks and UDP sockets to connect with CryoCon24 temperature monitor Jay Steele
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Sequencer news: latest snapshot Andrew Johnson
- Next:
Re: Sequencer news: latest snapshot J. Lewis Muir
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|