This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
how this code is parsed by gcc and how it is designing the parse tree?
- From: dibyayan chakraborty <dib dot coolguy at gmail dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Tue, 26 Jan 2010 21:43:42 -0800 (PST)
- Subject: 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.