core/com.nokia.carbide.cpp.compiler.doc.user/html/pragmas/p_optimization_level.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta name="LASTUPDATED" content="06/17/05 11:09:43" />
<title>optimization_level</title>
<link rel="StyleSheet" href="../../book.css" type="text/css"/>
</head>
<body>
<h3>optimization_level</h3>
<p> Controls global optimization. </p>
<h5>Syntax</h5>
<p class="code">#pragma optimization_level 0 | 1 | 2 | 3 | 4
</p>
<h5>Targets</h5>
All platforms.<br />
<h5>Remarks</h5>
<p>This pragma specifies the degree of optimization that the global optimizer performs.</p>
<p>To select optimizations, use the pragma optimization_level with an argument from 0 to 4. The higher the argument, the more optimizations performed by the global optimizer.</p>
<p>For more information on the optimization the compiler performs for each optimization level, refer to the Targeting manual for your target platform. </p>
<p>These pragmas correspond to the settings in the Global Optimizations panel. By default, the settings corresponds to the level set in the Global Optimizations panel.</p>
<p></p>
<div id="footer">Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
</body>
</html>