Does gfortran has 'I/O' buffering flag

In Intel Fortran, there is I/O buffering option, like below,

So, especially when using slow HDDs, and if there are some frequent or big data read and write activities, it can prevent the system from frozen.

Does anyone know that if gfortan or gcc have similar flag(s)? Many thanks in advance!

I don’t think there’s a gfortran flag for it, but this section of the documentation suggets buffered I/O is on by default. It can be turned of through an environment variable.

1 Like