<commit_before>#!/bin/bash
# 
# JAMS
# (c) 2014 <NAME>
# The source code of this project is distributed under the terms of the
# simplified BSD license. See the LICENSE file for details.
# 
# main redo script


exec >&2


# redo appears to be broken
set -e


TARGET=$1
TARGET_BASE=$2
OUTPUT=$3


PROJ_NAME="jams"


# configuration files for microcontroller and programmer
CFG_MCU="atxmega128a3u"
CFG_PROG="dragon_jtag"

CFG_FILES=("cfg/mcu/$CFG_MCU" "cfg/prog/$CFG_PROG")
redo-ifchange "${CFG_FILES[@]}"
for CFG_FILE in "${CFG_FILES[@]}"; do
	source "$CFG_FILE"
done


CC="avr-gcc"
AS="avr-as"
LD="avr-ld"

NM="avr-nm"
OBJCOPY="avr-objcopy"
OBJDUMP="avr-objdump"

AVRDUDE="avrdude"


SOURCES=$(find src -type f -iname "*.c")
OBJECTS=${SOURCES//.c/.o}

OUT_ELF="out/$PROJ_NAME.elf"
OUT_BIN="out/$PROJ_NAME.bin"
OUT_MAP="out/$PROJ_NAME.map"
OUT_DUMP="out/$PROJ_NAME.dump"
OUT_LST="out/$PROJ_NAME.lst"


DEFINES=("F_CPU=${CPU_KHZ}000UL")
INC_DIRS=(src)
LIB_DIRS=()
LIBS=()

CFLAGS_STD=(-std=gnu11)
CFLAGS_CPU=("-mmcu=$MCU" -fpack-struct -funsigned-bitfields)
CFLAGS_DEBUG=(-ggdb -fno-omit-frame-pointer -fvar-tracking-assignments \
	-fno-inline)
CFLAGS_OPT=(-O1 -mrelax -mstrict-X -fmerge-constants -ffast-math \
	-fno-jump-tables -fshort-enums -Wl,--gc-sections)
CFLAGS_WARN=(-Wall -Wextra -Wno-unused-function -fno-diagnostics-show-caret)<commit_msg>redo: tweak compiler options a bit<commit_after>#!/bin/bash
# 
# JAMS
# (c) 2014 <NAME>
# The source code of this project is distributed under the terms of the
# simplified BSD license. See the LICENSE file for details.
# 
# main redo script


exec >&2


# redo appears to be broken
set -e


TARGET=$1
TARGET_BASE=$2
OUTPUT=$3


PROJ_NAME="jams"


# configuration files for microcontroller and programmer
CFG_MCU="atxmega128a3u"
CFG_PROG="dragon_jtag"

CFG_FILES=("cfg/mcu/$CFG_MCU" "cfg/prog/$CFG_PROG")
redo-ifchange "${CFG_FILES[@]}"
for CFG_FILE in "${CFG_FILES[@]}"; do
	source "$CFG_FILE"
done


CC="avr-gcc"
AS="avr-as"
LD="avr-ld"

NM="avr-nm"
OBJCOPY="avr-objcopy"
OBJDUMP="avr-objdump"

AVRDUDE="avrdude"


SOURCES=$(find src -type f -iname "*.c")
OBJECTS=${SOURCES//.c/.o}

OUT_ELF="out/$PROJ_NAME.elf"
OUT_BIN="out/$PROJ_NAME.bin"
OUT_MAP="out/$PROJ_NAME.map"
OUT_DUMP="out/$PROJ_NAME.dump"
OUT_LST="out/$PROJ_NAME.lst"


DEFINES=("F_CPU=${CPU_KHZ}000UL")
INC_DIRS=(src)
LIB_DIRS=()
LIBS=()

CFLAGS_STD=(-std=gnu11)
CFLAGS_CPU=("-mmcu=$MCU" -fpack-struct -funsigned-bitfields)
CFLAGS_DEBUG=(-ggdb -fvar-tracking-assignments -fno-inline)
CFLAGS_OPT=(-Os -mrelax -mstrict-X -fmerge-constants -ffast-math \
	-fno-jump-tables -fshort-enums -Wl,--gc-sections)
CFLAGS_WARN=(-Wall -Wextra -Wno-unused-function -fno-diagnostics-show-caret)
{'fraction_non_alphanumeric': 0.17161961367013373, 'fraction_numerical': 0.01300148588410104, 'mean_word_length': 5.148401826484018, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3538964', 'n_tokens_mistral': 1229, 'n_tokens_neox': 1145, 'n_words': 215}