Re: stack overflow at compile time

"Jatin Bhateja" <jatin.bhateja@conexant.com>
28 Apr 2006 23:50:57 -0400

          From comp.compilers

Related articles
stack overflow at compile time jatin.bhateja@conexant.com (Jatin Bhateja) (2006-04-27)
Re: stack overflow at compile time NOSPAMrszeflerNOSPAM@murator.com.pl (RobertSzefler) (2006-04-27)
Re: stack overflow at compile time vb@compilers.de (Volker Barthelmann) (2006-04-27)
Re: stack overflow at compile time nitin@CoWare.com (Nitin Gupta) (2006-04-27)
Re: stack overflow at compile time henry@spsystems.net (2006-04-27)
Re: stack overflow at compile time gah@ugcs.caltech.edu (glen herrmannsfeldt) (2006-04-28)
Re: stack overflow at compile time jvorbrueggen@mediasec.de (=?ISO-8859-1?Q?Jan_Vorbr=FCggen?=) (2006-04-28)
Re: stack overflow at compile time jatin.bhateja@conexant.com (Jatin Bhateja) (2006-04-28)
Re: stack overflow at compile time emailamit@gmail.com (Amit Gupta) (2006-04-29)
Re: stack overflow at compile time bobduff@shell01.TheWorld.com (Robert A Duff) (2006-04-29)
Re: stack overflow at compile time emailamit@gmail.com (Amit Gupta) (2006-04-30)
Re: stack overflow at compile time henry@spsystems.net (2006-04-30)
Re: stack overflow at compile time henry@spsystems.net (2006-04-30)
Re: stack overflow at compile time bobduff@shell01.TheWorld.com (Robert A Duff) (2006-05-01)
[1 later articles]
| List of all articles for this month |

From: "Jatin Bhateja" <jatin.bhateja@conexant.com>
Newsgroups: comp.compilers
Date: 28 Apr 2006 23:50:57 -0400
Organization: Compilers Central
References: 06-04-157 06-04-161
Keywords: storage, analysis
Posted-Date: 28 Apr 2006 23:50:57 EDT

Hi Nitin,


>>One of the important scenario that you left is indirect function call
>>through function pointer.


Compiler computes the stack requirement of a function while processing
the function definition i.e when it is processing the body of the
function.


Now coming to function pointers i.e. indirect function call I feel that
when we talk of stack requirement of a program we talk in terms of
maximum possible stack space that program will need at run time. It
might happen that few of the functions are never invoked during run
time. Now if user is using function pointers in program in that case we
will be able to tell the maximum stack requirement of the program which
can be less than the actual because one is not sure which function is
invoked at run time.


Thanks and Best Regards,
Jatin Bhateja




Conexant Systems Inc
FC-2&4, Sector 16A,
Noida-201301, UP
Tel: 91 120 2512833, Extn @2408


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.