This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: optimizing calling conventions for function returns
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: "Jon Smirl" <jonsmirl at gmail dot com>
- Date: Tue, 23 May 2006 17:14:02 +0100
- Subject: Re: optimizing calling conventions for function returns
- References: <9e4733910605230821wa313c44i3c1dd670a4ee01c@mail.gmail.com>
> Has work been done to evaluate a calling convention that takes error
> checks like this into account? Are there size/performance wins? Or am
> I just reinventing a variation on exception handling?
This introduces an extra stack push and will confuse a call-stack branch
predictor. If both the call stack and the test are normally predicted
correctly I'd guess this would be a performance loss on modern cpus.
Paul