Re: [cc65] c64 question

Date view Thread view Subject view

From: Mike McCarty (jmccarty_at_ssd.usa.alcatel.com)
Date: 2001-03-20 01:22:54


On Tue, 20 Mar 2001, Arvid Norberg wrote:

> On Mon, 19 Mar 2001, Ullrich von Bassewitz wrote:
> 
> > 
> > For one, the GNU C compiler has about one hundred times the source code size
> > of cc65. I would expect it to do things like this.
> > 
> 
> I'm just curious, how hard is it to write a backend for gcc?


Unfortunately, as is much of the product of the FSF, the source for gcc
is a confusingly messy disaster.

I speak as one who has done it for a 16 bit machine.

At one time, we used the source for grep from the FSF here at work. One
fellow had a hard time, because it would not find some records in a very
large file. He could use an editor and find a few records which matched,
so he knew that grep was failing. He tracked it down to one subroutine
which

	was 5000 or so lines long
	had a McCabe complexity measure > 2000 (20 is an upper limit of reason)
	had deeply nested if, switch, etc, then gotos to deeply nested
		if, switch, etc. labels

There was no way this routine

	could possibly work
	could possibly be made to work
Mike
----
char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
I can explain it for you, but I can't understand it for you.
I don't speak for Alcatel      <- They make me say that.

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:39 CET