This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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]

Re: [RFC 0/5] xtensa: support dynamic configuration


Hi Max,

> Built toolchain takes configuration
> parameters from the shared object specified in the environment variable.

Using environment variables to pass configuration information is a bad idea.

The problem is that it can be very hard to debug problems when environment
variables are involved.  Often they are not included in bug reports, which
makes reproducing the problem tricky.

At the very least you should also provide a command line option which 
specifies the path to a file containing the configuration information.  If
specified this option should override the environment variable.

There is also the issue of versioning to consider.  Does the configuration
information contain a version number ?  What happens if the configuration
information is out of date with respect to the compiler/linker or if the 
tools are older than the configuration information ?

Cheers
  Nick



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]