Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!news.iecc.com!.POSTED.news.iecc.com!nerds-end From: "Rick C. Hodgin" Newsgroups: comp.compilers Subject: Re: Optimization techniques Date: Fri, 19 Apr 2019 16:11:04 -0700 (PDT) Organization: Compilers Central Lines: 20 Sender: news@iecc.com Approved: comp.compilers@iecc.com Message-ID: <19-04-013@comp.compilers> References: <19-04-004@comp.compilers> <19-04-012@comp.compilers> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="93718"; mail-complaints-to="abuse@iecc.com" Keywords: design, optimize Posted-Date: 19 Apr 2019 19:12:41 EDT X-submission-address: compilers@iecc.com X-moderator-address: compilers-request@iecc.com X-FAQ-and-archives: http://compilers.iecc.com In-Reply-To: <19-04-012@comp.compilers> Xref: csiph.com comp.compilers:2197 On Friday, April 19, 2019 at 7:04:51 PM UTC-4, Hans-Peter Diettrich wrote: > Am 17.04.2019 um 15:42 schrieb Rick C. Hodgin: > > Are there resources someone can point me to for learning more about > > time-honored, long-established, safely applied, optimization > > techniques for a C/C++ like language? > > I'm always a bit sceptic when C/C++ and "safe" occur in the same > sentence. AFAIR a C compiler is allowed to ignore parentheses when > reordering expressions, what can lead to numeric instabilities. In my language that is not allowed. The order of operations, as dictated by the developer, are honored. A feature has to be enabled to allow that kind of reordering. My language focuses on data correctness, not speed. Computers today are fast enough for 99% of general purpose apps. It's time for them to mature into data correctness in all areas. -- Rick C. Hodgin