Annotation of researchv10no/cmd/lcc/etc/cs.c, revision 1.1

1.1     ! root        1: /* DEC little-endian MIPSes running ULTRIX at Princeton University */
        !             2: 
        !             3: #include <string.h>
        !             4: 
        !             5: char *cpp[] = { "/usr/gnu/lib/gcc-cpp", "-undef", "-DLANGUAGE_C", "-D_LANGUAGE_C",
        !             6:        "-Dmips", "-Dhost_mips", "-DMIPSEL", "-D_MIPSEL", "$1", "$2", "$3", 0 };
        !             7: char *com[] =  { "/usr/local/lib/rcc", "$1", "$2", "$3", 0 };
        !             8: char *include[] = { "-I/usr/local/include/ansi", 0 };
        !             9: char *as[] =  { "/bin/as", "-o", "$3", "", "$1", "-nocpp", "-EL", "$2", 0 };
        !            10: char *ld[] =  { "/usr/bin/ld", "-o", "$3", "/usr/lib/crt0.o", "$1", "$2", "", "", "-lm", "-lc", 0 };
        !            11: 
        !            12: int option(arg) char *arg; {
        !            13:        if (strcmp(arg, "-g") == 0)
        !            14:                as[3] = "-g";
        !            15:        else if (strcmp(arg, "-p") == 0) {
        !            16:                ld[3] = "/usr/lib/mcrt0.o";
        !            17:                ld[7] = "/usr/lib/libprof1.a";
        !            18:        } else if (strcmp(arg, "-b") == 0 && access("/usr/local/lib/bbexit.o", 4) == 0)
        !            19:                ld[6] = "/usr/local/lib/bbexit.o";
        !            20:        else
        !            21:                return 0;
        !            22:        return 1;
        !            23: }

unix.superglobalmegacorp.com

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