code: private CommandLineCompilerConfiguration getBaseCompilerConfiguration(final Map<String, TargetInfo> targets) {
      //
      // find first target with an gcc or bcc compilation
      //
      CommandLineCompilerConfiguration compilerConfig = null;
      //
      // get the first target and assume that it is representative
      //
      for (final TargetInfo targetInfo : targets.values()) {
        final ProcessorConfiguration config = targetInfo.getConfiguration();
        final String identifier = config.getIdentifier();
        //
        // for the first gcc or bcc compiler
        //
        if (config instanceof CommandLineCompilerConfiguration) {
          compilerConfig = (CommandLineCompilerConfiguration) config;
          if (compilerConfig.getCompiler() instanceof GccCCompiler || compilerConfig
              .getCompiler() instanceof BorlandCCompiler) {
            return compilerConfig;
          }
        }
      }
      return null;
    }
docs: Gets the first recognized compiler from the
  compilation targets.
  
  @param targets
  compilation targets
  @return representative (hopefully) compiler configuration