Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 14 in printed book and digital formats -- plus a one-year subscription so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 14.6

FEATURE

Xojo Compiler Optimization

Tweaking Xojo's compiler for faster code

Issue: 14.6 (November/December 2016)
Author: Christian Schmitz
Author Bio: Christian Schmitz is the creator of the Monkeybread Software Xojo Plugins.
Article Description: No description available.
Article Length (in bytes): 24,324
Starting Page Number: 49
Article Number: 14605
Related Link(s): None

Excerpt of article text...

With Xojo version 2016r3, several optimization options were added for the Xojo compiler. These are Default, Moderate, and Aggressive. Each takes longer to compile than the previous but, supposedly, produces faster code.

But what difference do these optimization levels really make? I decided to look into LLDB and examine the generated assembler code. In three example snippets I will demonstrate what difference the optimization makes.

Warning: assembly language code follows. But don't worry—you don't really need to understand it. Simply seeing how compiler optimization produces fewer assembly instructions is enough to see how faster code is possible.

So let's get started with the first example!

...End of Excerpt. Please purchase the magazine to read the full article.