EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  <19951996  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  Index 1994  <19951996  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 
<== Date ==> <== Thread ==>

Subject: Re: ansi?
From: [email protected] (Jeff Hill)
Date: Thu, 29 Jun 95 16:51:51 MDT
Rozelle,

> I notice that the drv src directory:
> is divided into ansi, old and combine, but dev is not
> divided, although some of the dev files have the ansi calling sequence
> and some do not.
> Do you know why?
>
> I am assuming, that I should use ansi for
> the new things I am writing.

Unfortunately, some parts of ioc core are still in traditional (and not
ANSI) C. With drivers we need to be particularly careful because
when talking to hardware we must use the ANSI C keyword volatile for
variables that are hardware registers. Otherwise with traditional C we
use gcc's -fvolatile and more or less turn off the optimizer.

The new drv/ansi directory allows new driver codes and codes that
have been updated to ANSI C to take full advantage of the optimizer.
Old codes in drv/old are still compiled with the -fvolatile flag
(because they dont declare the members of hardware overlay
structures with volatile).

In drv/combine we combine the objects into one library.

Since they dont use the -fvolatile flag in the dev directory
all codes there that touch hardware need to be using the
volatile data type modifier for all fields in structures that
are hardware overlays.

Jeff


______________________________________________________________________
Jeffrey O. Hill                 Internet        [email protected]
LANL MS H820                    Voice           505 665 1831
Los Alamos, NM 87545 USA        FAX             505 665 5107

Navigate by Date:
Prev: Re: caRepeater ... Jeff Hill
Next: Bugs eventTask error message storm - BURT Unsigned values > 9 Marty Kraimer
Index: 1994  <19951996  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: caRepeater ... Jeff Hill
Next: Bugs eventTask error message storm - BURT Unsigned values > 9 Marty Kraimer
Index: 1994  <19951996  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 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·