Commit a040a73e authored by Matt Vaughan's avatar Matt Vaughan
Browse files

All the work

parents
File added
mlscheme @ 76b2de17
Subproject commit 76b2de171e489e9442eb2b8ecff9d85444cd59fc
#
# Makefile for nml
#
SOURCES = mlc.sml
MOSMLC = mosmlc
nml: $(SOURCES)
$(MOSMLC) -o nmlc $(SOURCES)
#
# Makefile for nml
#
SOURCES = ml.sml
MOSMLC = mosmlc
nml: $(SOURCES)
$(MOSMLC) -o nml $(SOURCES)
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
File added
(+ 1 2)
\ No newline at end of file
prejumbovm @ d7060507
Subproject commit d706050774f10ae028abd501287eb59e53201bc1
#include <stdlib.h>
#include <string.h>
#include "assert.h"
#include "array.h"
#include "arrayrep.h"
#include "mem.h"
#define T Array_T
T Array_new(int length, int size) {
T array;
NEW(array);
if (length > 0)
ArrayRep_init(array, length, size,
CALLOC(length, size));
else
ArrayRep_init(array, length, size, NULL);
return array;
}
#
# Makefile
# for Universal Machine
# Matthew Vaughan
#
CC = gcc
OPTIONS = -std=c99 -Wall -pedantic -O3
C = ${CC} ${OPTIONS}
um: loader.o instr.o interp.o umsegment.o um.c
${C} loader.o instr.o interp.o umsegment.o libcii.a um.c -o um
interp.o: interp.c interp.h instr.o
${C} -c instr.o interp.c
loader.o: loader.h loader.c instr.o
${C} -c instr.o loader.c
instr.o: instr.h instr.c
${C} -c instr.c
umsegment.o: umsegment.c umsegment.h
${C} -c umsegment.c
dis: dis.c libum-dis.a loader.o instr.o
${C} libcii.a libum-dis.a loader.o instr.o dis.c -o dis
clean:
rm -f *.o
\ No newline at end of file
#
# Makefile
# for Universal Machine
# Matthew Vaughan
#
CC = gcc
OPTIONS = -std=c99 -Wall -pedantic
C = ${CC} ${OPTIONS}
um: loader.o instr.o interp.o umsegment.o um.c
${C} loader.o instr.o interp.o umsegment.o libcii.a um.c -o um
interp.o: interp.c interp.h instr.o
${C} -c instr.o interp.c
loader.o: loader.h loader.c instr.o
${C} -c instr.o loader.c
instr.o: instr.h instr.c
${C} -c instr.c
umsegment.o: umsegment.c umsegment.h
${C} -c umsegment.c
dis: dis.c libum-dis.a loader.o instr.o
${C} libcii.a libum-dis.a loader.o instr.o dis.c -o dis
clean:
rm -f *.o
\ No newline at end of file
cii @ 9cb8b5f0
Subproject commit 9cb8b5f0a3b634a7459f1788b07d1d2321b8689c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment