Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/runtime/config/gen-bc-instr-def.c
ViewVC logotype

View of /sml/trunk/src/runtime/config/gen-bc-instr-def.c

Parent Directory Parent Directory | Revision Log Revision Log

Revision 250 - (download) (as text) (annotate)
Sat Apr 17 18:57:03 1999 UTC (22 years ago) by monnier
File size: 480 byte(s)
This commit was generated by cvs2svn to compensate for changes in r249,
which included commits to RCS files with non-trunk default branches.
/* gen-bc-instr-def.c
 * COPYRIGHT (c) 1993 by AT&T Bell Laboratories.
 * A program to generate #defines for the bytecode instruction opcodes.

#include <stdio.h>
#include "gen.h"
#include "bc.h"
#include "print-bc.h"

main ()
    int		i;
    FILE	*f;

    f = OpenFile ("bc-instr-def.h", "_BC_INSTR_DEF_");

    for (i = 0;  i < NUM_BC_INSTRS;  i++)
	fprintf(f, "#define %-23s %d\n", instrTbl[i].instrName, i);

    CloseFile (f, "_BC_INSTR_DEF_");

    exit (0);

ViewVC Help
Powered by ViewVC 1.0.0