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

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

unix.superglobalmegacorp.com

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