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

output of "cc1 --version"


I have here:

vin:~> /usr/lib/gcc/x86_64-linux-gnu/4.3/cc1 --version
GNU C (Debian 4.3-20080202-1) version 4.3.0 20080202 (experimental) [trunk revision 132072] (x86_64-linux-gnu)
        compiled by GNU C version 4.3.0 20080202 (experimental) [trunk revision 132072], GMP version 4.2.2, MPFR version 2.3.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

Shouldn't it give more information about the GMP and MPFR versions,
such as the library versions used at runtime?

FYI, I use the following code (or similar) in my programs:

#include <stdio.h>
#include <gmp.h>
#include <mpfr.h>

int main (void)
{
  printf ("GMP .....  Library: %-12s  Header: %d.%d.%d\n",
          gmp_version, __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
          __GNU_MP_VERSION_PATCHLEVEL);
  printf ("MPFR ....  Library: %-12s  Header: %s (based on %d.%d.%d)\n",
          mpfr_get_version (), MPFR_VERSION_STRING, MPFR_VERSION_MAJOR,
          MPFR_VERSION_MINOR, MPFR_VERSION_PATCHLEVEL);
#if MPFR_VERSION >= MPFR_VERSION_NUM(2,3,0)
  printf ("MPFR patches: %s\n", mpfr_get_patches ());
#endif
  return 0;
}

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


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