On Tuesday, 1 October 2013 at 18:47:27 UTC, Walter Bright wrote:
On 10/1/2013 4:22 AM, Chris wrote:Or does the compiler recognize _obvious_ cases and generate codeaccordingly? For example would it turn something like thisActually, the dmd compiler turns ALL control flow into goto statements internally, then the optimizer works on that. For example, it reverse engineers loops from a graph of basic blocks connected by goto's.
Most compiler do that.