Annotation of researchv10no/cmd/lcc/etc/hydra.c, revision 1.1.1.1

1.1       root        1: /* big-endian MIPS running SGI's UNIX System V at Bell Labs */
                      2: 
                      3: #include <string.h>
                      4: 
                      5: char *cpp[] = { "/v/lib/gcc-cpp", "-undef", "-DLANGUAGE_C", "-D_LANGUAGE_C", "-Dsgi", "-DSVR3",
                      6:        "-Dmips", "-Dhost_mips", "-DSYSTYPE_SYSV", "-D_SYSTYPE_SYSV", "-DMIPSEB", "-D_MIPSEB",
                      7:        "$1", "$2", "$3", 0 };
                      8: char *com[] =  { "/v/lib/rcc", "$1", "$2", "$3", 0 };
                      9: char *include[] = { "-I/v/include/libc", "-I/v/include/lcc", "-I/v/include", 0 };
                     10: char *as[] = { "/usr/bin/as", "-o", "$3", "$1", "-nocpp", "$2", 0 };
                     11: char *ld[] = { "/usr/bin/ld", "-o", "$3", "/usr/lib/crt1.o", "$1", "$2", "", "",
                     12:        "-lc", "/usr/lib/crtn.o", 0 };
                     13: 
                     14: int option(arg) char *arg; {
                     15:        if (strcmp(arg, "-g") == 0)
                     16:                ;
                     17:        else if (strcmp(arg, "-p") == 0) {
                     18:                ld[3] = "/usr/lib/mcrt1.o";
                     19:                ld[7] = "-lprof1";
                     20:        } else if (strcmp(arg, "-b") == 0)
                     21:                ld[6] = "/v/lib/bbexit.o";
                     22:        else
                     23:                return 0;
                     24:        return 1;
                     25: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.