<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Parsing C++ with GCC plugins, Part 2</title>
	<link>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/</link>
	<description>Boris Kolpackov's blog about software</description>
	<pubDate>Sat, 04 Apr 2026 15:35:41 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.2</generator>

	<item>
		<title>By: Boris Kolpackov</title>
		<link>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1530</link>
		<author>Boris Kolpackov</author>
		<pubDate>Thu, 03 Jun 2010 14:02:39 +0000</pubDate>
		<guid>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1530</guid>
		<description>Ben,

The plugin headers are installed along with GCC if plugin support was enabled during the GCC configuration (--enable-plugin configure option). To find out where these headers are, you can do:

g++-4.5 -print-file-name=plugin</description>
		<content:encoded><![CDATA[<p>Ben,</p>
<p>The plugin headers are installed along with GCC if plugin support was enabled during the GCC configuration (&#8211;enable-plugin configure option). To find out where these headers are, you can do:</p>
<p>g++-4.5 -print-file-name=plugin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben</title>
		<link>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1526</link>
		<author>Ben</author>
		<pubDate>Wed, 02 Jun 2010 19:27:28 +0000</pubDate>
		<guid>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1526</guid>
		<description>Good job and thanks for the tutorial

Where do you get the base SDK for making GCC plugins? It would be cool to make a plugin to modify the c++ language. One cool thing is to allow declaring of functions for a class/struct outside of it, without modifying the original source files.</description>
		<content:encoded><![CDATA[<p>Good job and thanks for the tutorial</p>
<p>Where do you get the base SDK for making GCC plugins? It would be cool to make a plugin to modify the c++ language. One cool thing is to allow declaring of functions for a class/struct outside of it, without modifying the original source files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yoco</title>
		<link>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1468</link>
		<author>yoco</author>
		<pubDate>Tue, 11 May 2010 16:44:15 +0000</pubDate>
		<guid>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1468</guid>
		<description>Thank you for the great job.</description>
		<content:encoded><![CDATA[<p>Thank you for the great job.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitriy V'jukov</title>
		<link>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1466</link>
		<author>Dmitriy V'jukov</author>
		<pubDate>Tue, 11 May 2010 11:57:00 +0000</pubDate>
		<guid>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1466</guid>
		<description>Thank you!</description>
		<content:encoded><![CDATA[<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yosh</title>
		<link>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1464</link>
		<author>Yosh</author>
		<pubDate>Tue, 11 May 2010 07:04:28 +0000</pubDate>
		<guid>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1464</guid>
		<description>Thx again</description>
		<content:encoded><![CDATA[<p>Thx again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boris Kolpackov</title>
		<link>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1463</link>
		<author>Boris Kolpackov</author>
		<pubDate>Mon, 10 May 2010 20:15:14 +0000</pubDate>
		<guid>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1463</guid>
		<description>Philip,

I showed how to build the plugin and how to run it on a C++ file in the previous post. Here are the command lines for your reference:

$ g++-4.5 -I`g++-4.5 -print-file-name=plugin`/include -fPIC -shared plugin.cxx -o plugin.so
$ g++-4.5 -S -fplugin=./plugin.so test.cxx

Also the GCC Internals documentation includes a sample makefile for building plugins (scroll all the way down):

http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gccint/Plugins.html#Plugins</description>
		<content:encoded><![CDATA[<p>Philip,</p>
<p>I showed how to build the plugin and how to run it on a C++ file in the previous post. Here are the command lines for your reference:</p>
<p>$ g++-4.5 -I`g++-4.5 -print-file-name=plugin`/include -fPIC -shared plugin.cxx -o plugin.so<br />
$ g++-4.5 -S -fplugin=./plugin.so test.cxx</p>
<p>Also the GCC Internals documentation includes a sample makefile for building plugins (scroll all the way down):</p>
<p><a href="http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gccint/Plugins.html#Plugins" rel="nofollow">http://gcc.gnu.org/onlinedocs/gcc-4.5.0/gccint/Plugins.html#Plugins</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philip Craig</title>
		<link>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1462</link>
		<author>Philip Craig</author>
		<pubDate>Mon, 10 May 2010 19:59:27 +0000</pubDate>
		<guid>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1462</guid>
		<description>It's great to see the examples and the downloadable .cxx file

Any chance you could also make available a script or makefile that will a) build it and b) given an instance of g++-4.5 will run it on something?</description>
		<content:encoded><![CDATA[<p>It&#8217;s great to see the examples and the downloadable .cxx file</p>
<p>Any chance you could also make available a script or makefile that will a) build it and b) given an instance of g++-4.5 will run it on something?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastien Binet</title>
		<link>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1461</link>
		<author>Sebastien Binet</author>
		<pubDate>Mon, 10 May 2010 17:21:29 +0000</pubDate>
		<guid>https://codesynthesis.com/~boris/blog//2010/05/10/parsing-cxx-with-gcc-plugin-part-2/#comment-1461</guid>
		<description>thanks a lot</description>
		<content:encoded><![CDATA[<p>thanks a lot</p>
]]></content:encoded>
	</item>
</channel>
</rss>
