Nim Nuggets: Nim talk at Strange Loop 2021

Patrick Schluter Patrick.Schluter at bbox.fr
Mon Oct 18 06:48:25 UTC 2021


On Sunday, 17 October 2021 at 21:11:34 UTC, max haughton wrote:
> On Sunday, 17 October 2021 at 19:18:25 UTC, Walter Bright wrote:
>> On 10/17/2021 3:03 AM, Ola Fosheim Grøstad wrote:
>>> [...]
>>
>> You're confusing data flow analysis and function inlining with 
>> ctfe. I know how data flow optimizers work, I was the first to 
>> implement one for DOS compilers in the 80s.
>>
>> [...]
>
> https://gcc.godbolt.org/z/jr5W6rY1W
>
> If I read you correctly, gcc circa '06 could do what you 
> describe. Or do you mean in windows land?

put the square function in another compilation unit (i.e. its 
source is not available), and see if it can optimize it. ;-)
That's the difference between CTFE and inlining.


More information about the Digitalmars-d mailing list