* a problem in modifying md file
@ 2002-11-06 2:45 Cui Huimin
0 siblings, 0 replies; 2+ messages in thread
From: Cui Huimin @ 2002-11-06 2:45 UTC (permalink / raw)
To: gcc-help
Hi,
I met a problem in using GCC.I've tried to make a cross-compiler for an
architecture which is similiar with 4kc.But some parameters should be modified,I
followed the docs to modified the mips.md file,for example,I modified the
following items and so on:
(define_function_unit "memory" 1 0
(and (eq_attr "type" "load")
(eq_attr "cpu" "r4kc"))
3 0)
(define_function_unit "memory" 1 0
(and (eq_attr "type" "store")
(eq_attr "cpu" "r4kc"))
3 0)
but this modification does not work,My execution is
mipsel-linux-ecoff-gcc -msoft-float -Dmain=main2 -Wall -c -S name.c -o name.s -EL
But it's output is like this:
...
sw $0,0($fp)
lw $2,0($fp)
bne $2,$0,$L2
li $2,1 # 0x1
sw $2,0($fp)
...
it looks that it doesn't work at all,I have to add "nop" in mips.c,but this idea
makes the optimization more difficult.Do I need to modify any else files?Thanks
for your answer.
With Best Wishes.
Yours,
Jessica Cui
^ permalink raw reply [flat|nested] 2+ messages in thread
* a problem in modifying md file
@ 2002-11-06 2:45 Cui Huimin
0 siblings, 0 replies; 2+ messages in thread
From: Cui Huimin @ 2002-11-06 2:45 UTC (permalink / raw)
To: gcc-help
Hi,
I met a problem in using GCC.I've tried to make a cross-compiler for an
architecture which is similiar with 4kc.But some parameters should be modified,I
followed the docs to modified the mips.md file,for example,I modified the
following items and so on:
(define_function_unit "memory" 1 0
(and (eq_attr "type" "load")
(eq_attr "cpu" "r4kc"))
3 0)
(define_function_unit "memory" 1 0
(and (eq_attr "type" "store")
(eq_attr "cpu" "r4kc"))
3 0)
but this modification does not work,My execution is
mipsel-linux-ecoff-gcc -msoft-float -Dmain=main2 -Wall -c -S name.c -o name.s -EL
But it's output is like this:
...
sw $0,0($fp)
lw $2,0($fp)
bne $2,$0,$L2
li $2,1 # 0x1
sw $2,0($fp)
...
it looks that it doesn't work at all,I have to add "nop" in mips.c,but this idea
makes the optimization more difficult.Do I need to modify any else files?Thanks
for your answer.
With Best Wishes.
Yours,
Jessica Cui
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-11-06 10:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-06 2:45 a problem in modifying md file Cui Huimin
2002-11-06 2:45 Cui Huimin
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).