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

1.1     ! root        1: /* SGI big-endian MIPSes running IRIX at CIT, Princeton University */
        !             2: 
        !             3: #include <string.h>
        !             4: 
        !             5: char *cpp[] = { "/u/drh/lib/mipseb/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:        "-DMIPSEB", "-D_MIPSEB", "-Dsgi", "-DSYSTYPE_SYSV", "-D_SYSTYPE_SYSV", "-DSYSTEM_FIVE", "-D__SYSTEM_FIVE",
        !             9:        "$1", "$2", "$3", 0 };
        !            10: char *com[] = { "/u/drh/lib/mipseb/rcc", "$1", "$2", "$3", 0 };
        !            11: char *include[] = { "-I/u/drh/include/mips_iris", 0 };
        !            12: char *as[] = { "/usr/bin/as", "-o", "$3", "$1", "-nocpp", "$2", 0 };
        !            13: char *ld[] = { "/usr/bin/ld", "-o", "$3", "/usr/lib/crt1.o", "$1", "$2", "", "",
        !            14:        "-lc", "/usr/lib/crtn.o", 0 };
        !            15: 
        !            16: int option(arg) char *arg; {
        !            17:        if (strcmp(arg, "-g") == 0)
        !            18:                ;
        !            19:        else if (strcmp(arg, "-p") == 0) {
        !            20:                ld[3] = "/usr/lib/mcrt1.o";
        !            21:                ld[7] = "-lprof1";
        !            22:        } else if (strcmp(arg, "-b") == 0 && access("/u/drh/lib/mipseb/bbexit.o", 4) == 0)
        !            23:                ld[6] = "/u/drh/lib/mipseb/bbexit.o";
        !            24:        else
        !            25:                return 0;
        !            26:        return 1;
        !            27: }

unix.superglobalmegacorp.com

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