mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* RTL explaination
@ 2006-06-07 12:54 kernel coder
  2006-06-07 13:39 ` Erik Mouw
  0 siblings, 1 reply; 2+ messages in thread
From: kernel coder @ 2006-06-07 12:54 UTC (permalink / raw)
  To: linux-kernel

hi,
I'm trying to understand the rtl genrated by gcc for mips processor.I
have read gcc internals by Richard Stallman but there  are still some
confusions in the rtl language.

Following is a snippet of code which i'm trying to understand.

(insn 9 6 10 (nil) (set (reg:SI 182)
        (mem/f:SI (symbol_ref:SI ("a")) [0 a+0 S4 A32])) -1 (nil)
    (nil))

In the above code following part is still unclear to me

[0 a+0 S4 A32])) -1 (nil)
    (nil))

Following is the c code for which above rtl is generated :

int a;
main()
{
a=a+1;
}


thanks,
shahzad

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RTL explaination
  2006-06-07 12:54 RTL explaination kernel coder
@ 2006-06-07 13:39 ` Erik Mouw
  0 siblings, 0 replies; 2+ messages in thread
From: Erik Mouw @ 2006-06-07 13:39 UTC (permalink / raw)
  To: kernel coder; +Cc: linux-kernel

On Wed, Jun 07, 2006 at 05:54:43PM +0500, kernel coder wrote:
> I'm trying to understand the rtl genrated by gcc for mips processor.I
> have read gcc internals by Richard Stallman but there  are still some
> confusions in the rtl language.
> 
> Following is a snippet of code which i'm trying to understand.
> 
> (insn 9 6 10 (nil) (set (reg:SI 182)
>        (mem/f:SI (symbol_ref:SI ("a")) [0 a+0 S4 A32])) -1 (nil)
>    (nil))
> 
> In the above code following part is still unclear to me
> 
> [0 a+0 S4 A32])) -1 (nil)
>    (nil))
> 
> Following is the c code for which above rtl is generated :
> 
> int a;
> main()
> {
> a=a+1;
> }

I think you will get many more responses on a mailing list dedicated to
gcc... See http://gcc.gnu.org/lists.html .


Erik

-- 
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 --
| Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-07 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-07 12:54 RTL explaination kernel coder
2006-06-07 13:39 ` Erik Mouw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®