C++ Logo

std-proposals

Advanced search

Re: Proposal for gotoReturn/goReturn/InlineOnce - Increase code density with out function calling overhead

From: Thiago Macieira <thiago_at_[hidden]>
Date: Fri, 05 Feb 2021 19:27:45 -0800
On Friday, 5 February 2021 05:53:44 PST Wesley Oliver via Std-Proposals wrote:
> The other think that I feel go give a lot more room for improv code speed
> execution would be gotoReturn, where basically just like a normal function
> call, however, return address is placed on the stack and non of the
> parameters, which would allow for the same speed improvements as inline and
> optimizing as if there was no function boundaries for register and
> parameter usage.

Parameter passing in registers is already the case in all modern platforms and
has been for 15 years.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DPG Cloud Engineering

Received on 2021-02-05 21:27:50