Egan, cc65 doesn't support float, try something like printf("\nRuntime: %ld sec, per iteration %d msec\n\n",end-start,1000*(end-start)/ITERATIONS); And think about using using long twice. It adds some more or less large library functions and is slow. /Thomas -------- directBOX Reply --------------- From: egan@sense.net To : cc65@musoftware.de Date: 25.08.2009 04:02:40 I get the following error: nq.c(46): Error: Integer expression expected With the following: printf("\nRuntime: %ld sec, per iteration %.2f\n\n",end-start,(float)(end-start)/ITERATIONS); end and start are time_t, ITERATIONS is a define statement (100). Same code compiles with gcc and Aztec C without issue. If I remove just the ITERATIONS and try to cast to a float I get: cl65 --static-locals -O -t apple2enh nq.c tcp.o nq.c(46): Internal compiler error: Invalid type in CF flags: 0004, type = 4 Input: printf("\nRuntime: %ld sec, per iteration %.2f\n\n",end-start,(float)(end-start)); cl65: Subprocess `cc65' aborted by signal 6 Any ideas how I can get around this? Thanks. ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Tue Aug 25 09:15:29 2009
This archive was generated by hypermail 2.1.8 : 2009-08-25 09:15:32 CEST