This commit is contained in:
illustris
2026-01-08 18:11:30 +05:30
commit 4fb1bd90db
32 changed files with 3058 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
CC = gcc
CFLAGS = -O2 -Wall
all: read_slow read_fast read_stdio testfile
read_slow: read_slow.c
$(CC) $(CFLAGS) -o $@ $<
read_fast: read_fast.c
$(CC) $(CFLAGS) -o $@ $<
read_stdio: read_stdio.c
$(CC) $(CFLAGS) -o $@ $<
testfile:
dd if=/dev/urandom of=testfile bs=1M count=1
smallfile:
dd if=/dev/urandom of=smallfile bs=10K count=1
clean:
rm -f read_slow read_fast read_stdio testfile smallfile
.PHONY: all clean testfile smallfile