2 static char rcsid[] = "$Id: main.c,v 0.8 1994/06/24 13:27:36 ceriel Exp $";
10 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
11 * See the copyright notice in the ACK home directory, in the file "Copyright".
13 * Author: Hans van Staveren
17 extern char startupcode[];
18 extern unsigned codegen();
25 main(argc,argv) char **argv; {
27 extern unsigned cc1,cc2,cc3,cc4;
31 while (--argc && **++argv == '-') {
35 if ((Debug = argv[0][2]) != 0) {
37 if (argv[0][3] == '@') {
39 strtdebug = &argv[0][4];
52 maxply = atoi(argv[0]+2);
54 case 'w': /* weight percentage for size */
71 error("Unknown flag %c",argv[0][1]);
77 error("Usage: %s [ EMfile ] [ asfile ]",progname);
78 in_init(argc >= 1 ? argv[0] : (char *) 0);
79 out_init(argc >= 2 ? argv[1] : (char *) 0);
83 codegen(startupcode,maxply,TRUE,MAXINT,0);
84 error("Bombed out of codegen");
87 unsigned ggd(a,b) register unsigned a,b; {