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

1.1       root        1: /* big-endian MIPS running MIPS's UNIX System V at Princeton U. */
                      2: 
                      3: #include <string.h>
                      4: 
                      5: char *cpp[] = { 
                      6: /*     "/usr/gnu/lib/gcc-cpp", "-undef",               /* GNU preprocessor */
                      7:        "/usr/local/lib/cpp", "-N", "-D__STDC__=1",     /* dmr's preprocessor */
                      8:        "-DLANGUAGE_C", "-D_LANGUAGE_C", "-Dmips", "-Dhost_mips", "-DSYSTYPE_BSD43",
                      9:        "-D_SYSTYPE_BSD43", "-DMIPSEB", "-D_MIPSEB", "$1", "$2", "$3", 0 };
                     10: char *com[] = { "/usr/local/lib/rcc", "$1", "$2", "$3", 0 };
                     11: char *include[] = { "-I/usr/local/include/ansi", "-I/bsd43/usr/include2.0",
                     12:        "-I/bsd43/usr/include", "-I/usr/include", 0 };
                     13: char *as[] = { "/usr/bin/as", "-o", "$3", "$1", "-nocpp", "$2", 0 };
                     14: char *ld[] = { "/usr/bin/ld", "-systype", "/bsd43/", "-o", "$3",
                     15:        "/bsd43/usr/lib/cmplrs/cc/crt1.o", "$1", "$2", "", "",
                     16:        "/sysv/usr/lib/libc.a", "-lc", "/bsd43/usr/lib/cmplrs/cc/crtn.o", 0 };
                     17: 
                     18: static char *libprefix = "/cmnusr/local/lib/ldb/";
                     19: extern char *concat();
                     20: 
                     21: int option(arg) char *arg; {
                     22:        if (strcmp(arg, "-g") == 0)
                     23:                ;
                     24:        else if (strcmp(arg, "-p") == 0 
                     25:              && strcmp(ld[5], "/bsd43/usr/lib/cmplrs/cc/crt1.o") == 0) {
                     26:                ld[5] = "/bsd43/usr/lib/cmplrs/cc/mcrt1.o";
                     27:                ld[9] = "/bsd43/usr/lib/cmplrs/cc/libprof1.a";
                     28:        } else if (strcmp(arg, "-b") == 0 && access("/usr/local/lib/bbexit.o", 4) == 0)
                     29:                ld[8] = "/usr/local/lib/bbexit.o";
                     30:        else if (strcmp(arg, "-G") == 0 
                     31:              && strcmp(ld[5], "/bsd43/usr/lib/cmplrs/cc/crt1.o") == 0) {
                     32:                com[0] = concat(libprefix, "mipseb/rcc");
                     33:                ld[0]  = "/n/fs/cmnusr/local/lib/ldb/ldb-ld";
                     34:                ld[5]  = concat(libprefix, "mipseb/crt1.o");
                     35:                ld[9]  = concat(libprefix, "mipseb/Cnub.o");
                     36:        } else
                     37:                return 0;
                     38:        return 1;
                     39: }

unix.superglobalmegacorp.com

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