12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 10.9.<br />

The <strong>C++</strong> page of the<br />

Project Options dialog<br />

box.<br />

NOTE<br />

More on Projects<br />

At the top of this page is a section called Speed Sett<strong>in</strong>gs that conta<strong>in</strong>s two buttons. The Full<br />

Debug button sets the default compiler options for a typical debug session. These are the<br />

sett<strong>in</strong>gs you will be most likely to use while debugg<strong>in</strong>g your application. The Release button<br />

sets the compiler options for a typical release build. Use the Release sett<strong>in</strong>gs after you have<br />

debugged your application and are ready to ship the f<strong>in</strong>al product. Be sure that you do a Build<br />

All of your project after chang<strong>in</strong>g compiler sett<strong>in</strong>gs.<br />

The Full Debug and Release buttons set the compiler sett<strong>in</strong>gs to the<br />

suggested sett<strong>in</strong>gs for debugg<strong>in</strong>g or f<strong>in</strong>al release, respectively. You can<br />

always change <strong>in</strong>dividual options after choos<strong>in</strong>g one of these speed<br />

buttons.<br />

The rema<strong>in</strong>der of the <strong>C++</strong> page is broken down <strong>in</strong>to four sections. Let’s exam<strong>in</strong>e each section<br />

so that you can better understand the different compiler options.<br />

Code Optimization<br />

The compiler can be configured to perform optimizations on your code. When optimizations<br />

are turned off (the None radio button is selected) <strong>in</strong> the Code optimization section of the <strong>C++</strong><br />

page, the compiler makes no attempts to optimize code <strong>in</strong> any way.<br />

If you choose the Speed option, the compiler will generate the fastest code possible without<br />

regard to code size. When optimizations are set to Speed with schedul<strong>in</strong>g, the compiler will<br />

optimize to take advantage of Pentium Pipel<strong>in</strong>e Instructions. In most cases you should leave<br />

this option on the default sett<strong>in</strong>g chosen when you press either the Full Debug or Release<br />

speed buttons.<br />

367<br />

10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!