Experimental Physics and Industrial Control System
Hi Gang,
I've finally managed to get Free_gdct running on my Alpha/Unix box.
This was quite a struggle, but it is now running. There were a number of
interrelated problems which took some weeks to sort out:-
o - Interviews `as is' (including the so-called Alpha patch on
interviews.stanford.edu) does not work on Alpha/Unix systems. In
fact, it will not work on ANY system in which sizeof(int) !=
sizeof( void*). This I have now fixed, at least as far as any
routines called by free_gdct are concerned. The patches should
work for other 64 bit Unix implementation, as long as the compilers
can represent all pointers as long's. If new c++ implementations
do other funny stuff (such as sizeof(void*) != sizeof( (class::*)())
then all bets are off.
o - Free_gdct needs some conditional code for Alpha compilation -
mainly in class definitions derived from the InterViews classes
which have virtual functions. I've worked with Jim on this & I'll
be sending him the patches for the next EPICS release.
o - The Alpha iostream library is broken when it comes to some
pathological cases. I'm not sure if this is an Alpha bug, of if
it is InterViews playing fast and loose with the specs. The
particular offending construction is
(signed) int i;
out << i // saving databases
....
in >> i // restoring
when i = -1. iostream dumps this as 4294967295 (treating it as
an unsigned int), but correctly restores its value. However, the
Alpha iostream library uses this as an excuse to loose
synchronization on the input file stream, completely
misinterpreting any further information in the database file
and ultimately causing a core dump (naturally, millions of
instructions later, and when it has managed to bury itself in
a stack which is 38 levels deep). Stuff like this always happens
in the summer when it is nice outside doesn't it?
So, we now have a working gdct on a 64 bit system; DCT is no longer
necessary for Alpha EPICS. We do, however, have to face the fact that
InterViews is a dead product, and porting to other architectures (when Sun/HP
get around to their own 64 bit Unix's) is likely to be time consuming.
Does anyone know the status of Fresco? I believe that it will be distributed
as part of X at some time. It is supposed to be a development of (but not
a superset of) InterViews, and so could presumably function as a basis for
an enhanced GDCT. It may even be painlessly portable...
Tony Cox
--------------------------------------------------------------------------------
Dr Anthony D Cox
Computer Systems Specialist
Stanford Synchrotron Radiation Laboratory
Stanford Linear Accelerator Center
MS 69, Box 4349
Stanford CA 94305
[email protected]
--------------------------------------------------------------------------------
- Navigate by Date:
- Prev:
Re: Internal type conversion in Epics Marty Kraimer
- Next:
Re: Free GDCT and Alpha/Digital Unix Tim Mooney
- 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:
[no subject] Andy Foster
- Next:
Re: Free GDCT and Alpha/Digital Unix Tim Mooney
- 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