| United States-English |
|
|
|
![]() |
HP Pascal/HP-UX Programmer's Guide > Chapter 5 Allocation and Alignment Files |
|
When your program declares a file, the compiler allocates space for the file control block and the file buffer variable. The amount of space allocated to each is fixed by the packing algorithm. The file is 8-byte-aligned. Table 5-11 “Allocation of File Components (HP Pascal Packing Algorithm) ” shows how the HP Pascal packing algorithm allocates file components for textfiles and nontextfiles. Table 5-11 Allocation of File Components (HP Pascal Packing Algorithm)
Sometimes you can reduce file buffer size or increase file operation speed by the way you declare a file. Compare the following file definitions, their buffer sizes, and how you can write 100 integers to them. Table 5-12 Title not available (Files )
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||