2 static char rcsid[] = "$Id: main.c,v 2.6 1994/06/24 13:23:50 ceriel Exp $";
9 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
10 * See the copyright notice in the ACK home directory, in the file "Copyright".
12 * Author: Hans van Staveren
16 extern char startupcode[];
24 main(argc,argv) char **argv; {
26 extern unsigned cc1,cc2,cc3,cc4;
30 while (--argc && **++argv == '-') {
37 maxply = atoi(argv[0]+2);
39 case 'w': /* weight percentage for size */
56 error("Unknown flag %c",argv[0][1]);
61 if (argc < 1 || argc > 2)
62 error("Usage: %s EMfile [ asfile ]",progname);
66 codegen(startupcode,maxply,TRUE,MAXINT,0);
69 error("Bombed out of codegen");
73 unsigned ggd(a,b) register unsigned a,b; {