Denso RC5 Specifications Page 549

  • Download
  • Add to my manuals
  • Print
  • Page
    / 692
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 548
Chapter 20 Preprocessor
20-5
20.3 Optimization
#pragma optimize (Preprocessor Statement)
Function
Designates optimization to be executed for each program.
Format
#pragma optimize (“<Option list>”, {on/off})
Explanation
This statement designates optimization to be executed for each program.
Describe this statement on the line before the PROGRAM declaration
statement or on a valid statement line.
Designate an arbitrary number of parameters, listed on the following table for
<Option list>.
Parameter Optimization type
A
Deletes the array inspection code.
C
Deletes the cycle time calculation code.
Remarks: If you effectively use the optimization option, you can
increase the execution speed of a non-action instruction by
10% to 20 %. When you select [File] and then [Project
setting] in the PAC manager, you can find the program
setting table. There is also a program optimization option
there.
Example
#pragma optimize( “ac”, ON ) 'Deletes the array inspection code and makes the
'cycle time calculation code valid.
Note
This command has priority over the status set in “Project setting” of the PAC
manager. Therefore, if the array inspection code is deleted, the system does
not check the range of the array subscripts although the error process is set
with ON ERROR GOTO.
Page view 548
1 2 ... 544 545 546 547 548 549 550 551 552 553 554 ... 691 692

Comments to this Manuals

No comments