>>>>> "DW" == Dirk Weigenand <[EMAIL PROTECTED]> writes:
DW> I haven't looked into the issue very deeply but my feeling is DW> that doJikesCompile should be extended to check the length of the DW> resulting command line and if it exceeds some limit to take the DW> same approach as on Windows XX Probably, yes. For Linux there is a limit in /usr/include/linux/limits.h: #define ARG_MAX 131072 /* # bytes of args + environ for exec() */ (Kernel 2.2). I think POSIX defines a limit for the length of command lines but can't remember the details. If 1000 files get Jikes into trouble than the filenames must be quite long I guess - or carry around a huge environment. Any idea what we should take as a limit? 100kByte? As for the related problem on Win98 - I'd like to investigate this one further before we create temporary files for each and every Jikes compile on earth. Usually we don't get into trouble with the length of the command line. Diane, are you using a very deep directory structure so that the filenames themselves get very long? Maybe we could fix both problems with a single patch, something like "if running on Windows and the number of files is > 250 or the total command line is longer than (as DOS systems are involved) 64k" to trigger the temporary file approach? Stefan
