On 11/29, Michael Davidsaver wrote:
> On 11/29/23 09:55, J. Lewis Muir wrote:
> > On 11/29, Michael Davidsaver wrote:
> > > On 11/28/23 21:19, J. Lewis Muir via Tech-talk wrote:
> > > > What C language standard (e.g., C99) and C++ language standard
> > > > (e.g., C++11) does EPICS 7 Base require?
> > >
> > > Currently epics-base and the bundled PVA modules should build with -std=c++98.
> >
> > Thanks! And what about C?
>
> In practice, my answer is the same. The toolchains we test with.
> eg. RTEMS 4.9 has GCC 4.4.
>
> On "paper" C89. I am less certain that Base would actually build with
> -std=c89 as we may use some compiler specific features in OS/compiler
> specific code.
OK, thanks!
> > > > Also, is there a C and C++ language standard for EPICS 7 modules?
> > > >
> > > > BTW, the EPICS 7 Base build system does not specify a C and C++ standard
> > > > when compiling (e.g., via a "-std=" compiler option) on most platforms,
> > > > but I think it should on all platforms. I only see that compiler option
> > > > being used in the following:
> > >
> > > Of more practical importance than -std=... we test with older G++ and MSVC.
> > >
> > > eg. with my PVXS modules, while I say >= c++11. In practice my compatibility
> > > target is g++ >= 4.8 (circa RHEL7) which implemented most, but not all, of c++11.
> >
> > Thanks! And again, what about C?
>
> PVXS is written in C++.
OK, understood; I thought you were giving PVXS as an example and
answering generally for EPICS 7 modules, so that's why I was also asking
about C. If you have a sense for C for EPICS 7 modules, I'd be very
interested to hear. I might guess it would follow EPICS 7 Base, but I
don't know that. And using PVXS as an example, that would not be a good
guess since you're targeting C++11, whereas EPICS 7 Base is C++98.
Thanks!
Lewis
- References:
- C and C++ standard required by EPICS 7 Base and modules? J. Lewis Muir via Tech-talk
- Re: C and C++ standard required by EPICS 7 Base and modules? Michael Davidsaver via Tech-talk
- Re: C and C++ standard required by EPICS 7 Base and modules? J. Lewis Muir via Tech-talk
- Re: C and C++ standard required by EPICS 7 Base and modules? Michael Davidsaver via Tech-talk
- Navigate by Date:
- Prev:
RE: Andor3 IOC detects and connects to Marana, can get frames, but frames appear noisy/corrupted Mark Rivers via Tech-talk
- Next:
RE: Andor3 IOC detects and connects to Marana, can get frames, but frames appear noisy/corrupted Pearson, Matthew via Tech-talk
- 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: C and C++ standard required by EPICS 7 Base and modules? Michael Davidsaver via Tech-talk
- Next:
Andor3 IOC detects and connects to Marana, can get frames, but frames appear noisy/corrupted Wlodek, Jakub via Tech-talk
- 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
|