--reduce_paths, --no_reduce_paths

This option enables or disables the elimination of redundant path name information in file paths.

Show/hideMode

Effective on Windows systems only.

Show/hideDefault

The default is --no_reduce_paths.

Show/hideUsage

Windows systems impose a 260 character limit on file paths. Where path names exist whose absolute names expand to longer than 260 characters, you can use the --reduce_paths option to reduce absolute path name length by matching up directories with corresponding instances of .. and eliminating the directory/.. sequences in pairs.

Note

It is recommended that you avoid using long and deeply nested file paths, in preference to minimizing path lengths using the --reduce_paths option.

Show/hideExample

A file to be linked might be at the location:

..\..\..\xyzzy\xyzzy\objects\file.c

Your current working directory might be at the location:

\foo\bar\baz\gazonk\quux\bop

The combination of these paths results in the path:

\foo\bar\baz\gazonk\quux\bop\..\..\..\xyzzy\xyzzy\objects\file.o

By using the option --reduce_paths the path becomes:

\foo\bar\baz\xyzzy\xyzzy\objects\file.c
Copyright © 2008, 2011-2012 ARM. All rights reserved.ARM DUI 0458C
Non-ConfidentialID062912