<commit_before>CC=arm-none-eabi-gcc
CXX=arm-none-eabi-g++
CFLAGS=-O2 -nostartfiles -std=gnu99
CXXFLAGS=-O2 -nostartfiles -std=c++11 -fno-exceptions -fno-unwind-tables -I/usr/include/newlib/c++/4.9/ -I/usr/include/newlib/c++/4.9/arm-none-eabi/
DEPS = 
OBJ = boot.o kernel.o cboot.o clib.o uart.o

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

%.o: %.cpp $(DEPS)
	$(CXX) -c -o $@ $< $(CXXFLAGS)

%.o: %.S $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

kernel.elf: $(OBJ)
	$(CC) -T linker.ld -o $@ $^ $(CFLAGS) -lstdc++
	
%.img: %.elf $(DEPS)
	arm-none-eabi-objcopy $< -O binary $@

.PHONY: clean

clean:
	rm -f *.o kernel.elf kernel.img
<commit_msg>Generate map file.<commit_after>CC=arm-none-eabi-gcc
CXX=arm-none-eabi-g++
CFLAGS=-O2 -nostartfiles -std=gnu99
CXXFLAGS=-O2 -nostartfiles -std=c++11 -fno-exceptions -fno-unwind-tables -fno-rtti -I/usr/include/newlib/c++/4.9/ -I/usr/include/newlib/c++/4.9/arm-none-eabi/
DEPS = 
OBJ = boot.o kernel.o cboot.o clib.o uart.o

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

%.o: %.cpp $(DEPS)
	$(CXX) -c -o $@ $< $(CXXFLAGS)

%.o: %.S $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

kernel.elf: $(OBJ)
	$(CC) -T linker.ld -o $@ $^ $(CFLAGS) -Wl,-Map,kernel.map -lstdc++
	
%.img: %.elf $(DEPS)
	arm-none-eabi-objcopy $< -O binary $@

.PHONY: clean

clean:
	rm -f *.o kernel.elf kernel.img

{'fraction_non_alphanumeric': 0.25742574257425743, 'fraction_numerical': 0.015232292460015232, 'mean_word_length': 3.018348623853211, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6655055', 'n_tokens_mistral': 672, 'n_tokens_neox': 627, 'n_words': 128}