Cypress CSC-1200T Uživatelská příručka Strana 52

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 124
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 51
52 Cray T3E User’s Guide
Chapter 6
C and C++ programming
This chapter discusses C and C++ programming on the Cray T3E. Paral-
lel programming is described in Chapter 7 and programming tools are
discussed in Chapter 9.
6.1 The Cray C/C++ compilers
The Cray C++ Programming Environment contains both the Cray Stan-
dard C and the Cray C++ compilers. The Cray Standard C compiler
conforms with the ISO and ANSI standards. The Cray C++ compiler
conforms with the ISO/ANSI Draft Proposed International Standard.
Because both the Cray Standard C and Cray C++ compilers are contained
within the same programming environment, programmers writing code
in C should use the cc or c89 commands to compile their source files.
The command c89 is a subset of cc and conforms to the POSIX standard.
Programmers writing code in C++ should use the CC command.
Note that the C/C++ compiler is unable to parallelize automatically your
code. Instead, you must use explicit methods like message-passing (MPI
or PVM) libraries, or the data-passing library (SHMEM).
The following commands are included in the C/C++ programming envi-
ronment on the T3E:
Command Description
cc Cray Standard C compiler
c89 Cray Standard C compiler
CC Cray C++ compiler
cpp Preprocessor of the C compiler
Zobrazit stránku 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 123 124

Komentáře k této Příručce

Žádné komentáře