On Fri, 2005-10-14 at 15:16 -0400, Zhijian Yin (ZY) wrote:
> Ernest L. Williams Jr. wrote:
>
> >Compilation worked very well and was extremely fast, however, it is not
> >64-bit. When the compilation is complete what you get is a 32-bit
> >application running on a 64-bit OS. So basically, when we run EPICS it
> >the linux OS is in 32-bit compatibility mode.
> >
> >To achieve the 64-bit mode we will have to throw the "-m64" flag to the
> >GCC compiler.
> >
> >This is my next step but I sense there will be trouble as some of my
> >colleagues have forewarned me.
> >
> >
> Thanks for clear this up.
>
> However, the binary I got, for example, 'file medm' shows
>
> medm: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for
> GNU/Linux 2.6.0, dynamically linked (uses shared libs), not stripped
>
> How can it be a 32-bit application?
>
> Just start to play x86_64 linux, sorry for the "rudimentary" question.
You are right. Your application is indeed 64 bit.
For GCC it turns out that when compiling on a 64-bit machine the default
is 64 bits.
=========================================================================
On my machine 'file excas' shows:
excas: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for
GNU/Linux 2.4.0, dynamically linked (uses shared libs), not stripped
=========================================================================
Looks like we have to do something extra to get 32-bits.
For example, gcc -m32 and/or g++ -m32
So EPICS BASE is really running in 64-bit mode, wow that was easy.
I hope something is not broken at run time.
excas: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for
GNU/Linux 2.4.0, dynamically linked (uses shared libs), not stripped
Thanks,
Ernest L. Williams Jr.
SNS Control Systems Group
ORNL
>
>
> ZY
- Replies:
- Re: 64-bit EPICS anyone? Steven Hartman
- References:
- 64-bit EPICS anyone? Ernest L. Williams Jr.
- Re: 64-bit EPICS anyone? Zhijian Yin (ZY)
- Re: 64-bit EPICS anyone? Ernest L. Williams Jr.
- Re: 64-bit EPICS anyone? Zhijian Yin (ZY)
- Navigate by Date:
- Prev:
Re: 64-bit EPICS anyone? Zhijian Yin (ZY)
- Next:
Capfast symbol for R3.13 scan record Peregrine McGehee
- 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: 64-bit EPICS anyone? Zhijian Yin (ZY)
- Next:
Re: 64-bit EPICS anyone? Steven Hartman
- 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
|