|
Instructor
Lecture:
Resources |
Lectures /
ASMReview
int foo(int a, int b)
{
Int c;
char d[8];
}
int main(int argc, char * argv[])
{
Int e = atoi(argv[1};
foo(argc, e)
}
int foo(int a, int b)
{
printf("A = d\n", a, b);
return(bar(a,b));
}
int bar(int c, int d)
{
return(c + d);
}
Because the last thing foo() does is call bar(), how could you optimize the assembly code for foo() to make the program execute faster?
|