[Cs-dev] c++11
Date | 2012-02-20 18:03 |
From | Michael Gogins |
Subject | [Cs-dev] c++11 |
This is a question for Csound developers in general, and for OS X developers in particular. As you know we now have several different threading libraries at work in the Csound universe (including CsoundQt). As you probably also know, the official ISO standard for the C++ programming language now specifies a reasonably complete set of threading primitives. These are well designed. They seem to be implemented in GCC from version 4.4 on. I am not proposing to change any existing code at this point, but I am going to put some threading into the CsoundAC library. I can use pthreads, OpenMP, or the standard C++ library threads. I would prefer to use the standard C++ library threads, but I won't do this unless the standard C++ build on all platforms uses a version of GCC that has the builtin threads. So, my question for Csound developers is: Can we agree that our compilers will support c++11 threading? Doing this will require (a) using GCC 44 or later and (b) adding "-std=c++0x" to all C++ compiler command lines for CsoundAC and other targets that use these features. Regards, Mike -- Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2012-02-20 18:12 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] c++11 |
I think the latest gcc provided by Apple on OSX 10.6/10.7 is 4.2. To use 4.4 we would need to start build gcc ourselves. I am not sure I want to go there. Besides, other people building Csound will want to use the supplied tools, rather than having to build them. Victor On 2 Feb 2012, at 18:03, Michael Gogins wrote: > This is a question for Csound developers in general, and for OS X > developers in particular. > > As you know we now have several different threading libraries at work > in the Csound universe (including CsoundQt). As you probably also > know, the official ISO standard for the C++ programming language now > specifies a reasonably complete set of threading primitives. These are > well designed. They seem to be implemented in GCC from version 4.4 on. > > I am not proposing to change any existing code at this point, but I am > going to put some threading into the CsoundAC library. I can use > pthreads, OpenMP, or the standard C++ library threads. I would prefer > to use the standard C++ library threads, but I won't do this unless > the standard C++ build on all platforms uses a version of GCC that has > the builtin threads. > > So, my question for Csound developers is: Can we agree that our > compilers will support c++11 threading? > > Doing this will require (a) using GCC 44 or later and (b) adding > "-std=c++0x" to all C++ compiler command lines for CsoundAC and other > targets that use these features. > > Regards, > Mike > > -- > Michael Gogins > Irreducible Productions > http://www.michael-gogins.com > Michael dot Gogins at gmail dot com > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2012-02-20 19:14 |
From | Iain Duncan |
Subject | Re: [Cs-dev] c++11 |
Attachments | None None |
On Mon, Feb 20, 2012 at 10:12 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I think the latest gcc provided by Apple on OSX 10.6/10.7 is 4.2. To use 4.4 we would need to start build gcc ourselves. I am not sure I want to go there. Yeah, my GCC on OS X 10.6.7 is 4.2.1, and I think came when I installed the xcode stuff. I agree with Victor that requiring people to use something other than what comes with the Xcode package on os x is likely to deter/frustrate some builders on os x. I sure like the principle of the proposal, but have to say that setting up the latest tools on os x is a lot more difficult than on linux, for what's that worth. :-/
Iain |
Date | 2012-02-20 19:39 |
From | Michael Gogins |
Subject | Re: [Cs-dev] c++11 |
OK, thanks for the information. I will not do anything requiring the Csound build to use GCC 4.4 or later. Either I will localize my changes in my own projects outside Csound, or I will use threading facilities already in the existing build. Regards, Mike On Mon, Feb 20, 2012 at 2:14 PM, Iain Duncan |