The sample programs and test files from Itanium Architecture for Programmers can be downloaded in several formats. Select the format and method that will be most convenient for the way you intend to use the files with text editors.
Downloadable Archive | Contents |
---|---|
itanium_lf.tar | Files having LF line terminators, as appropriate for ASCII text on all Unix and Linux systems. |
itanium_crlf.tar | Files having CRLF line terminators, as appropriate for ASCII text on all Windows and DOS systems. (OpenVMS systems will also recognize this as a valid text file format.) |
itanium_cr.sit | Files having CR line terminators, as appropriate for ASCII text on Macintosh systems. |
Stuffit Expander™, which is available from the Stuffit home page as a free download, can extract the files from these archives as a folder or subdirectory (named itanium_lf, itanium_crlf, or itanium_cr). On a Linux or Unix system, you can also simply use the command 'tar xvf itanium_lf.tar' without the need for Stuffit Expander.
Each individual file from Itanium Architecture for Programmers can be brought up in a new browser window, from which you can print it, save it as a local ASCII file, or select and paste the text into a window of another application, such as a programmer's text editor.
|
|
The sample programs and test files should be functionally equivalent, regardless of the method chosen for downloading.
File Name | Nature and Purpose |
---|---|
checksum.c | Source code for a simple C function that can be used for studies of the kind described in Chapter 11 (transcribed from Programming Itanium-based Systems: Developing High Performance Applications for Intel’s New Architecture by Triebel, Bissell, and Booth, Intel Press, 2001, page 283). |
palindromes.txt | Additional palindromes beyond those in Exercise 6-24. (See also Peter Norvig’s computer-generated longest palindrome.) |
testio_c.c | Program in C that is equivalent to the assembly language program io_c.s (Figure 6-7). |
usefgets.s | A variant of the SCANTERM program (Figure 9-3) that uses the fgets function instead of the deprecated gets function. You must include '-x assembler-with-cpp' on the command line to gcc in a Linux environment, in order to invoke the cpp preprocessor phase. (Note that the implementation of a file pointer corresponding to stdin differs between HP-UX and Linux. A related exercise would be to use the techniques of Chapter 11 on sample C programs to learn how to access stdout and stderr similarly.) |
These additional files have been produced during the evolution and use of the book and its sample programs. They are included in the subsidiary folder or subdirectory extras in the composite archives. |
[viika] [Itanium Architecture home] [This
Page] [e-mail the author(s)]
last update: 2006-03-22 JSE