Cypress CSC-1200T Guia do Utilizador Página 55

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 124
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 54
Chapter 6. C and C++ programming 55
The fact that Fortran stores arrays in reverse order compared to C needs
to be taken into account. Therefore, the array ct contains the transpose
of the result of the matrix multiplication.
This program takes about one second to execute on a 375 MHz proces-
sor, which corresponds to the execution speed of about 240 Mflop/s.
6.4 C compiler options
The most typical compiler options are given in the Table 6.1. Manyofthe
options have corresponding compiler directives, which can be included
in the source code.
Compiler option Meaning
-c Compile only, do not attempt to link
-On Choose optimization level n (0,1,2,3)
-hoption Enable specific compiler actions
-haggress Aggressive optimization
-hunroll Enable loop unrolling
-hscalarn Choose scalar optimization level n (0,1,2,3)
-hstdc Strict conformance of the ISO C standard
-hsplit Split loops into smaller ones
-happrentice Compile for MPP Apprentice
-lapp Link with MPP Apprentice library
-g Compile for the Cray TotalView debugger
-Gf Debugging with full optimization
-Gp Debugging with partial optimization
-Gn Debugging with no optimization (same as -g)
-Xnpes Compile for npes processors
-Dmacro[=def ] Define a cpp macro
-Umacro Undefine a cpp macro
-V Display the version number of the compiler
-Wphase[,"options"] Pass options to phase
-Iincpath Search include files also from incpath
-Llibpath Search libraries also from libpath
-lname Link also with library libname.a
Table 6.1: Typical compiler options.
Vista de página 54
1 2 ... 50 51 52 53 54 55 56 57 58 59 60 ... 123 124

Comentários a estes Manuais

Sem comentários