This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

how this code is parsed by gcc and how it is designing the parse tree?


#include <stdio.h>
int sum();
int (*addr_sum)();
int main(void)
{
  extern int first, last; /* use global vars */
  //printf("%d %d\n", first, last);
//sum(first,last);
printf("%d %d\n",first,last);
printf("%d\n",sum());
printf("%d %d\n",first,last);
printf("%u\n",sum);
addr_sum=sum;
printf("%u\n",addr_sum());
  return 0;
}
/* global definition of first and last */
int first = 10, last = 20;
int sum()
{
int l,k;
l=first;k=last;
l=l+k;
return l;
}
how this code is parsed by gcc and how it is designing the parse tree?
if possible please show me the design of the parse tree also.......



-- 
View this message in context: http://old.nabble.com/how-this-code-is-parsed-by-gcc-and-how-it-is-designing-the-parse-tree--tp27334435p27334435.html
Sent from the gcc - libstdc++ mailing list archive at Nabble.com.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]