Hello!
I want to write a plugin that parse the AST. Could I get some hint
about how to do it?
I have been reading this excellent article:
http://codesynthesis.com/~boris/blog/2010/05/10/parsing-cxx-with-gcc-plugin-part-2/
The problem is that I fail to follow those advices.
I fail to use 'global
On Sun, 23 Jan 2011 11:58:21 +0100
Daniel Marjamäki wrote:
> Hello!
>
> I want to write a plugin that parse the AST. Could I get some hint
> about how to do it?
You could use GCC MELT for that purpose. See www.gcc-melt.org
Regards
--
Basile STARYNKEVITCH http://starynkevitch.net/Basi
GCC-MELT is an interesting project. But it seems to be very difficult
to write lisp scripts. You don't have a C interface also, do you?
I would like to see how I can use plain C.
Regards,
Daniel
2011/1/23 Basile Starynkevitch :
> On Sun, 23 Jan 2011 11:58:21 +0100
> Daniel Marjamäki wrote:
>
>
On Sun, 23 Jan 2011 15:49:48 +0100
Daniel Marjamäki wrote:
> GCC-MELT is an interesting project. But it seems to be very difficult
> to write lisp scripts. You don't have a C interface also, do you?
The few people who tried writing MELT code are founding on the contrary
that coding in MELT is ea
On 23/01/2011 10:58, Daniel Marjamäki wrote:
> I fail to use 'global_namespace':
> daniel@daniel:~/gcc/build/gcc$ ./xgcc -fplugin=./myplugin2.so -c test1.c
> cc1: error: cannot load plugin ./myplugin2.so
You're running the C compiler (cc1) here, not the C++ one (cc1plus), because
you've passed
Hello!
> Either change your test file to .cpp, or add "-x c++" to the command-line.
that worked. thank you.
I don't want to limit my plugin to C++. But to start with it is ok.
> The major issue is to understand all the details of GCC internal
> representations (i.e. Trees, Gimples). Did you u
Snapshot gcc-4.3-20110123 is now available on
ftp://gcc.gnu.org/pub/gcc/snapshots/4.3-20110123/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.
This snapshot has been generated from the GCC 4.3 SVN branch
with the following options: svn://gcc.gnu.org/svn/gcc/branches
Hi, all, I have read the discussion here:
http://gcc.gnu.org/ml/gcc/2010-07/msg3.html
I'm not sure about the current status.
Is it possible to use this library:
http://code.google.com/p/dlfcn-win32/
This library just do a wrapper on the windows dll library.
any ideas?
thanks.
asmwarrior