|
|
Subscribe / Log in / New account

Rust for safety

Rust for safety

Posted Jul 13, 2016 23:02 UTC (Wed) by JoeBuck (subscriber, #2330)
In reply to: Rust for safety by lsl
Parent article: Herman: Shipping Rust in Firefox

The reason a compiler will choose one order of evaluation over another, when the order is unspecified, is to generate better code. When optimization is off, some compilers will choose a right-to-left order (I think MSVC did at one time), others left to right. With optimization on, if evaluating A before B would require register spills that would not be required if B is evaluated first, B would be evaluated first, and the code runs faster.


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds