www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/12/08/17:57:30

Date: Tue, 8 Dec 1992 18:26:07 +0100
From: ESCHN705 AT RZ DOT Braunschweig DOT PTB DOT DBP DOT de
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: again on -O and -O2

/*  Excuse me, please. I'm still in trouble with 1.08.                   */
/*  There was indeed a gross mistake (thanks for hints), but...          */
/*  When compiled with                                                   */
/*  gcc -Wall -O2 test.c -lm                                             */
/*  the following still fails, giving an exception 14.                   */
/*                                                                       */
/*  Can you help me once more ?                                          */
/*                                                                       */
/*  test.c:                                                              */
/*-----------------------------------------------------------------------*/
#include <stdio.h>

#define maxdim 23

typedef double matrix[2*maxdim+1][2*maxdim+1];

void main (argc,argv)

int argc;
char **argv;

{  matrix morg;
   int lact, lm, ln;

   for (lact=0; lact <= maxdim; ++lact)
     { printf("lact=%5d ",lact); fflush(stdout);

       for (lm=0; lm <= 2*lact; ++lm)
         for (ln=0; ln <= 2*lact; ++ln)
           morg[lm][ln] = 1.0;
     }
}
/*-----------------------------------------------------------------------*/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019