discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Which ObjC2.0 features are missing in the latest GCC?


From: Gregory Casamento
Subject: Re: Which ObjC2.0 features are missing in the latest GCC?
Date: Mon, 25 Nov 2019 06:00:43 -0500


Ah, okay.  So I guess we can take that off of the list of advantages.  I believe, however, that clang is better at optimization.  I could be wrong on that point.

On Mon, Nov 25, 2019 at 5:53 AM David Chisnall <address@hidden> wrote:
On 25 Nov 2019, at 09:37, Gregory Casamento <address@hidden> wrote:
>
> * C++, while this is not exclusive to clang, gcc doesn't support the latest version of C++.  Clang is extraordinarily good at optimization.

I don’t think this is true.  We have a C++17 project that we test in CI with GCC.  The only times that we experience problems are when we use some non-standard attributes that GCC doesn’t support (but we also build with Visual Studio, so we rarely find anything that we need that those two support but GCC doesn’t, it’s only when we have something ELF-specific that’s a problem).

I don’t know how good GCC’s Objective-C++ support is (as I recall, Objective-C and Objective-C++ in GCC aren’t just base-language + Objective-*, so it isn’t necessarily a given that you get full C++17 support in GCC’s Objective-C++), but using C++ smart pointers you can get a lot of ARC (at the very least - and prior to ARC support, I did - you can implement smart pointers that manage Objective-C retain / release and use them to hold Objective-C objects in collections.

David



--
Gregory Casamento
GNUstep Lead Developer / OLC, Principal Consultant
http://www.gnustep.org - http://heronsperch.blogspot.com
http://ind.ie/phoenix/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]