<commit_before>cmake_minimum_required(VERSION 3.2)
project(kernel C CXX ASM)

set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99" )
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2" )

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2" )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/include/newlib/c++/4.9/" )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/include/newlib/c++/4.9/arm-none-eabi/" )

set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostartfiles" )
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -T ${CMAKE_SOURCE_DIR}/linker.ld")

set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "" )
set( CMAKE_ASM_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "" )


set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(SOURCE_FILES
    boot.S
    cboot.c
    clib.c
    kernel.cpp
    reg.h
    uart.c
    uart.h
    interrupts.c)

add_executable(kernel.elf ${SOURCE_FILES})<commit_msg>Generate map file (again).<commit_after>cmake_minimum_required(VERSION 3.2)
project(kernel C CXX ASM)

set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99" )
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2" )

set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2" )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/include/newlib/c++/4.9/" )
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/usr/include/newlib/c++/4.9/arm-none-eabi/" )

set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostartfiles" )
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -T ${CMAKE_SOURCE_DIR}/linker.ld")
set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-Map,${CMAKE_SOURCE_DIR}/kernel.map")

set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "" )
set( CMAKE_ASM_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "" )


set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(SOURCE_FILES
    boot.S
    cboot.c
    clib.c
    kernel.cpp
    reg.h
    uart.c
    uart.h
    interrupts.c)

add_executable(kernel.elf ${SOURCE_FILES})
{'fraction_non_alphanumeric': 0.15380549682875264, 'fraction_numerical': 0.012684989429175475, 'mean_word_length': 5.247524752475248, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3773556', 'n_tokens_mistral': 904, 'n_tokens_neox': 822, 'n_words': 124}