[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    Re: [Pcc] Experimental Optimizing
From:       Rich Felker <dalias () libc ! org>
Date:       2014-10-08 14:46:04
Message-ID: 20141008144604.GP23797 () brightrain ! aerifal ! cx
[Download RAW message or body]

On Sat, Oct 04, 2014 at 09:48:48AM +0200, Martin Husemann wrote:
> On Fri, Oct 03, 2014 at 03:50:15PM -0700, scj@yaccman.com wrote:
> > Another example is when structures will fit into an int or a long -- you
> > can pass them on the stack, and that can be a real win.
> 
> But you carefully have to check the ABI rules on this.

For external function calls you must honor the ABI. For calling a
static function whose address cannot leak out of the current
translation unit, the compiler is free to customize the calling
convention however it sees fit. Even if the address does leak, the
compiler is free to produce two or more versions of the code, one for
external use with the standard ABI and one or more alternative
versions for local calls that can use optimized conventions.

Rich
_______________________________________________
Pcc mailing list
Pcc@lists.ludd.ltu.se
http://lists.ludd.ltu.se/cgi-bin/mailman/listinfo/pcc
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic