This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Fri, Dec 22, 2006 at 09:20:12AM -0800, Steve Kargl wrote:
"Integer output constants are produced with the effect of an Iw edit descriptor." ... "For numeric output, reasonable processor-dependent values of w, d, and e are used for each of the numeric constants output."
In this case, we could make the default format for list-directed output of integers '(" ",I0)'.
For portable code, Eef needs to determine the processor-dependent value for w.
I don't think w has to be the same value for all constants. It would probably be best to use a format that cannot overflow the substring, such as
write (unit=c(1:5),fmt='(I5)') i
schluter@pcl247d:~/src> g77 internal.f schluter@pcl247d:~/src> ./a.out 1 678901234567890 100 678901234567890 1000678901234567890 1000678901234567890 1000678901234567890 schluter@pcl247d:~/src>
Cheers, - Tobi
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |