From: charfi asma <charfiasma@yahoo.fr>
To: Andi Hellmund <mail@andihellmund.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re : Re : Re : Re : Re : Re : [GCC front end] trying to install sample_fe but fail in make
Date: Fri, 16 Jul 2010 14:15:00 -0000 [thread overview]
Message-ID: <339992.16381.qm@web28510.mail.ukl.yahoo.com> (raw)
In-Reply-To: <4C23C78C.2040903@andihellmund.com>
Hello,
I run the sfe_example and it works perfectly.
when I call gsfe -s file1.sfe, I get the file1.s which is nearly the same
assembly generated when compiling the same c code with gcc.
But now, I want to understand How it works ;)
I look at the code of sfe_example.c and sfe1.c.
I understand that sfe1 define a tree for each variable /type /c function in the
c code, for example for the global_var, we have the function :
create_decl_global_var() of type tree, etc
in the sfe1.c, those functions are called in the getdecls(void) but this
function tree getdecls(void) is never called
so my questions are:
1. who calls all sfe1.c functions ( sfe_parse_file, getdecls, ...) ?
2. when we call the sfe1.c, is the result equal to the generic form of the c
code ? In which file this form is stocked ?
although I think that the body of each funcion of sfe1_example.c is writen in
generic but I am not sure (generic is a list of tree code just like gimple)
when I compile the same c code using gcc and dump the gimple form, I expected
that the generic form is close to the gimple one, am I write ?
3. I do not really understand this code in the sfe1.h
struct lang_identifier GTY(())
{
struct tree_identifier common;
};
union lang_tree_node GTY((desc ("TREE_CODE (&%h.generic) == IDENTIFIER_NODE")))
{
union tree_node GTY ((tag ("0"), desc ("tree_node_structure (&%h)")))
generic;
struct lang_identifier GTY ((tag ("1"))) identifier;
};
thank you very much
Asma
________________________________
De : Andi Hellmund <mail@andihellmund.com>
À : charfi asma <charfiasma@yahoo.fr>
Envoyé le : Jeu 24 juin 2010, 23h 01min 00s
Objet : Re: Re : Re : Re : Re : Re : [GCC front end] trying to install
sample_fe
but fail in make
Hey,
please find attached a version of the front-end with the example from the blog.
It's been some time that I tested this code, so hopefully it is still working.
If not, you would however get an impression on howto create GENERIC IR.
Best regards,
Andi
next prev parent reply other threads:[~2010-07-16 14:08 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-04 15:04 charfi asma
2010-06-04 15:46 ` Andi Hellmund
2010-06-07 13:34 ` Re : " charfi asma
2010-06-07 14:28 ` Andi Hellmund
2010-06-07 16:11 ` Re : " charfi asma
2010-06-07 21:34 ` Philip Herron
[not found] ` <AANLkTimBwfoGdgaz19gkeFoKhbnloKYT0VpVMmjVUgtA@mail.gmail.com>
2010-06-08 18:54 ` Re : " charfi asma
2010-06-08 21:34 ` Andi Hellmund
2010-06-23 16:52 ` Re : " charfi asma
[not found] ` <895794.48229.qm@web28503.mail.ukl.yahoo.com>
2010-06-24 1:53 ` Andi Hellmund
2010-06-24 5:26 ` Philip Herron
2010-06-24 23:41 ` Re : " charfi asma
2010-06-25 4:14 ` Andi Hellmund
2010-06-25 13:28 ` Philip Herron
[not found] ` <4C23C78C.2040903@andihellmund.com>
2010-07-16 14:15 ` charfi asma [this message]
2010-07-17 3:48 ` Re : " Philip Herron
2010-07-19 13:56 ` Re : " charfi asma
2010-07-21 15:53 ` Philip Herron
2010-08-16 12:32 ` Re : " charfi asma
2010-08-18 9:22 ` Philip Herron
2010-08-18 16:07 ` Re : " charfi asma
2010-08-18 17:40 ` Philip Herron
2010-08-19 17:39 ` Re : " charfi asma
2010-08-20 4:33 ` Philip Herron
2010-08-21 10:37 ` Re : " charfi asma
2010-08-24 6:34 ` Andi Hellmund
2010-08-24 13:45 ` Re : " charfi asma
2010-08-25 21:46 ` Philip Herron
2010-08-26 13:02 ` Re : " charfi asma
2010-06-25 0:15 ` Re : Re : " Jens Kilian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=339992.16381.qm@web28510.mail.ukl.yahoo.com \
--to=charfiasma@yahoo.fr \
--cc=gcc-help@gcc.gnu.org \
--cc=mail@andihellmund.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).