VMS Help
MACRO, /MIGRATION, Compiler Directives, .BRANCH LIKELY

 *Conan The Librarian (sorry for the slow response - running on an old VAX)

    Instructs the compiler that the following branch will likely be
    taken. Therefore, the compiler generates code that incorporates
    that assumption.

    Format

      .BRANCH_LIKELY

    There are no parameters for this directive.

  1 - Example

  MOVL (R0),R1
  .BRANCH_LIKELY
  BNEQ    10$
    .
    .
    .
  10$

      The compiler will move the code between the BNEQ instruction
      and label 10$ to the end of the module, and change the BNEQ 10$
      to a BEQL to the moved code. It will then continue immediately
      following the BEQL instruction with generation of the code
      starting at label 10$. This will eliminate the delay that
      occurs on Alpha systems for a mispredicted branch.
  Close     HLB-list     TLB-list     Help  

[legal] [privacy] [GNU] [policy] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.