#include <assert.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>

#define N  8 * 1024 * 1024
static char buf[N+1];

// a not very interesting compile
static void compile(char *prog) {
	printf("%s", prog);
}

int main(int argc, char *argv[]) {

	assert(argc==2);

        int fd;
        assert((fd = open(argv[1], O_RDONLY)) >= 0);
                assert(read(fd, buf, N) > 0);
        close(fd);

	compile(buf);
        return 0;
}
