indirect call in RTL dump files

2006-05-06 Thread sean yang
http://gcc.fyxm.net/summit/2004/GCC%20Call%20Graph.pdf For the RTL representation, there are two type of function call instructions as I understand. 1) direct call---this type of calls are shown with something like (call (mem:QI (symbol_ref:SI ("bar") [flags 0x3] bar>) [0 S1 A8]) And the corre

Re: indirect call in RTL dump files

2006-05-06 Thread Andrew Pinski
On May 6, 2006, at 10:06 AM, sean yang wrote: 2) indirect call (explained in 3.1 in the above paper) Can someone help me explain this a bit? --what the corresponding code is in C, and what causes it to happen? What does the RTL code look like? void f(void (*x)(void)) { x(); } -- Pins

Re: indirect call in RTL dump files

2006-05-06 Thread sean yang
From: Andrew Pinski <[EMAIL PROTECTED]> To: "sean yang" <[EMAIL PROTECTED]> CC: gcc@gcc.gnu.org Subject: Re: indirect call in RTL dump files Date: Sat, 6 May 2006 10:10:16 -0700 On May 6, 2006, at 10:06 AM, sean yang wrote: 2) indirect call (explained in 3.1 i

RE: indirect call in RTL dump files

2006-05-08 Thread Dave Korn
On 06 May 2006 19:45, sean yang wrote: >> From: Andrew Pinski >> On May 6, 2006, at 10:06 AM, sean yang wrote: >> >>> 2) indirect call (explained in 3.1 in the above paper) >>> Can someone help me explain this a bit? --what the corresponding code is >>> in C, and what causes it to happen? What