LF Fortran 95

-BLOCK blocksize

Default blocksize

Compile only. Default: 8192 bytes

Default to a specific blocksize for file I/O (See the OPEN Statement in the LF95 Language Reference). Blocksize must be a decimal INTEGER constant. Specifying an optimal blocksize can make an enormous improvement in the speed of your executable. The program TRYBLK.F90 in the Win32\Src directory demonstrates how changing blocksize can affect execution speed. Some experimentation with blocksize in your program is usually necessary to determine the optimal value.

Visual Studio Property

The -block option corresponds to the Fortran|Optimization|I/O Blocksize property. This property can be set on the property page for the project or source file.

See Also

Setting Build Options