Long Command Lines and @FILE

Joel Sherrill joel@rtems.org
Thu Sep 16 18:55:31 GMT 2021


On Thu, Sep 16, 2021, 1:08 PM DJ Delorie <dj@redhat.com> wrote:

>
> As an additional tidbit, this feature was added for DJGPP as DOS command
> lines are limited to 128 bytes (I got the idea from Borland, IIRC).  I
> vaguely recall that other platforms were starting to hit command line
> limits, and the feature was added to libiberty for general use.
>

That's an awesome piece of historical trivia.

A secondary challenge is getting the build system to write the file without
using a different command which trips the limit. I assume at least GNU make
can do some iteration with maybe foreach and shell that would let you write
a file with a list of objects.

And does GCC have something similar? It seems likely to hit it there as
well.

This is just such an awful case of hitting a limit that forces you to try
things you don't use often.

--joel

>
>


More information about the Binutils mailing list