What am I doint wrong here?!?!

Chris Croswhite ccroswhite@get2chip.com
Sun Feb 23 21:06:00 GMT 2003


gcc 3.2.2 on x86 (686):
What am I doing wrong here:

#include <math.h>
#include <stdio.h>

int main () {
  double val, num;
  int *exp;

  val = 5.0/2.0;

  num = frexp(val, exp);

  printf("num is %g\n", val);

return 1;
}

gcc -static -O2 foo.c -o foo

foo generates a dump.

TIA,
chris



More information about the Gcc-help mailing list