Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Support for Altivec Vector types in the CDT parser?

Is this for gcc? Should we consider moving the altivec support down into the gcc parser?

On Fri, Jan 8, 2010 at 11:13 AM, Mike Kucera <mkucera@xxxxxxxxxx> wrote:

Your assumption is incorrect. The CDT project contains its own implementation of the XL C/C++ parser, which is completely independent of the XLC compiler. It integrates with CDT just like the default parser does, it builds an AST and works with the outline view and everything else. You don't need to be doing your builds with xlc to use the parser. And since the xlc compiler tries to be compatible with gcc the parser has support for most gcc extensions.

Having said that, the XLC C++ parser does lag behind the default CDT parser in a few areas. For example it doesn't support parsing declarations in inactive code blocks. Also the altivec support is purely syntactic, CDT does not actually recognize vector types and so they will not be considered when doing overload resolution. Therefore it still makes a lot of sense to add alitivec support to the main parser. In the meantime you can either set up some macros so that the vector keyword is ignored or you can use the XLC parser to get by.




Mike Kucera
Software Developer
Eclipse CDT/PTP
IBM Toronto
mkucera@xxxxxxxxxx

Inactive hide details for George Russell ---01/08/2010 10:06:40 AM---Hi,George Russell ---01/08/2010 10:06:40 AM---Hi,


From:

George Russell <george@xxxxxxxxxxxx>

To:

"CDT General developers list." <cdt-dev@xxxxxxxxxxx>

Date:

01/08/2010 10:06 AM

Subject:

Re: [cdt-dev] Support for Altivec Vector types in the CDT parser?




Hi,

I assume the XL C/C++ parser is part of the XLC compiler, and not the
CDT itself? I am looking for support, for example, for the outline view
of the CDT to distinguish the declarations

vector float f;
and
float f;

and so would need the parser of the CDT to build the appropriate AST etc.

Cheers,
George

Chris Recoskie wrote:
>
> The XL C/C++ parser supports the vector keyword and other associated
> things related to altivec support. You might want to try that.
>
> ===========================
> Chris Recoskie
> Team Lead, IBM CDT and RDT
> IBM Toronto
>
>

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


GIF image

GIF image


Back to the top