Skip to content

Fb Optimize

Paul Squires edited this page Oct 14, 2026 · 2 revisions

Home › Intrinsic Defines › FB_OPTIMIZE

FB_OPTIMIZE

Intrinsic define set by the compiler

Syntax

__FB_OPTIMIZE__

Description

Always defined and will have a value from 0 to 3 (0 by default) to indicate the optimization level passed to the backend compiler via -O.

Remarks

Differences from QB

  • Did not exist in QB

See also

Examples

Print "Optimization level is: " & __FB_OPTIMIZE__


Category: Intrinsic Defines
Kind: keyword


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally