in gcc-3.4.1
rtl can be generated when parsing the source program,
for example,
stmt:
compstmt
{ stmt_count++; $$ = $1; }
| expr ';'
{ stmt_count++;
$$ = c_expand_expr_stmt ($1); }
while in c_expand_body, rtl can also be generated .
what are they respectively
i write a front-end , and compile it with gcc-3.4.1 source code,
and it errors in function rest_of_compilation()
void
rest_of_compilation (tree decl)
{
rtx insns;
timevar_push (TV_REST_OF_COMPILATION);
rtl_register_cfg_hooks ();
generating_concat_p = 0;
cse_not_expected = ! optimize;
1.
in the gt-c-decl.h,
three functions about lang_decl,
gt_pch_nx_lang_decl(),gt_ggc_mx_lang_decl, gt_pch_g_9lang_decl(),
what are the differences between the three functions?
2.
i can find the prefixes in the gengtype.c,
what are they setting for?
static const struct write_types_data ggc_wtd =
i am sorry for that.
> "zouq" <[EMAIL PROTECTED]> writes:
>
> Please don't start a new thread by replying to a message on an
> existing thread. Just send a new message, instead. Otherwise your
> message goes in the wrong place for people who use threaded
i am trying to port a front end to gcc,
and i am confused with the gc,
i see from the file gengtype.c, it can generate many files automaticlly,
but i don`t understand the rule to generate it, i can only understand
firstly use the yacc to analysize the gtfiles, then output something ,
and this is ju
en,i still have a problem,
the MAX_INSNS_PER_PEEP2 is 3,
when the program case is :
mul.d $f1, $f1, $f0
add.d $f2, $f2, $f1
sub.d $f3, $f3, $f2
sdc1 $f3, 0(v0)
addiu v0, v0, 1
add.d $f3, $f4, $f2
sdc1
> On Fri, May 13, 2005 at 11:37:16PM +0800, zouq wrote:
>> original program is:
>
first i want to generate a three-operator multiply-add instruction similar
to four-operator multiply-add instruction in mips4 instruction sets.
i modify the gcc/config/mips/mips.md file as follow:
(define_peephole2
[ (set (match_operand:SF 0 "register_operand" "=f")
(mult:SF (match_operan
i found madd instruction in mips.md,
but why when i compiled it with my cross-compile mipsel-linux-gcc as follows,
mipsel-linux-gcc -mips4 -O2 test.c -S
i can`t find any madd instruction in test.s??
what else should i do?
i am now writing a frontend in gcc,
but i don`t understand the rule to write the makefile.in, config-lang.in
first i download the release the version of gcc-2.95.3, binutils 2.15,
and i use the o32 lib, include of gcc3.3.3 .
1. compile the binutils and install it
mkdir binutils-build;
cd binutils-build;
../../binutils-2.15/configure --prefix=/opt/gcc --target=mipsel-linux -v;
make;make install;
2. cp -r
i want very much to learn more about the parse tree in gcc.
but it`s much more complicate than i have thought.
can some one show me some way to learn it a little easier,
i have tried to debug it, but the structure is difficult to understand,
and i can`t find any document about it, except the commen
i wonder whether there exists or not alias analysis for scalar variable,
array variable, even pointers.
thank you.
ril 2005 10:09, zouq wrote:
>> i can`t find it in current gcc version.
>> pleas do me the favor to tell me about it.
>
> I can only guess that you probably mean the Debray alias analysis
> proposed at the GCC summit in 2003. Follow this link for the paper:
> "http:
i can`t find it in current gcc version.
pleas do me the favor to tell me about it.
in gcc3.4.1,i found rest_of_new_handle_regalloc
why in gcc4.0, it has been removed?
or haved changed its name?
- 源邮件 -
主题: Re: about gcc-4.1-20050327
发件人: "zouq" <[EMAIL PROTECTED]>
日期: Tue, 三月 29, 2005 8:21 am
收件人: "James E Wilson" <[EMAIL PROTECTED]>
-
i build a crosscompiler for gcc, abi=n32
gcc-4.1-20050327/configure -target=mips64el-linux
-prefix=/opt/gcc-4.1-20050327/ -enable-languages=c --disable-shared
make
it will error with config/mips/mips.c
/testcom.c
int main (void)
{
int i,j;
int u[100][100], v[100][100],
p[100][100], unew[100][100],
vnew[100][100],pnew[100][100],
uold[100][100],vold[100][100],
pold[100][100],cu[100][100],
cv[100][100],z[100][100],h[100
18 matches
Mail list logo