Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions backend/compilers/compilers.linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,17 @@ saturn:
- cygnus-2.7-96Q3

dreamcast:
- shc-v5.0r10
- shc-v5.0r26
- shc-v5.0r28
- shc-v5.0r31
- shc-v5.0r32
- shc-v5.1r01
- shc-v5.1r03
- shc-v5.1r04
- shc-v5.1r08
- shc-v5.1r11
- shc-v5.1r13

macosx:
- gcc-5026
Expand Down
29 changes: 29 additions & 0 deletions backend/coreapp/compilers.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,14 +509,33 @@ def available_platforms() -> List[Platform]:
cc=SATURN_CC,
)

# earlier shc doesn't accept -fpu=single or -aggressive=2
DREAMCAST_CC_V50R10 = (
'cat "$INPUT" | unix2dos > dos_src.c && '
"cp -r ${COMPILER_DIR}/bin/* . && "
"(SHC_LIB=. SHC_TMP=. ${WINE} ${COMPILER_DIR}/bin/shc.exe dos_src.c ${COMPILER_FLAGS} -comment=nonest -cpu=sh4 -division=cpu -endian=little -extra=a=1800 -pic=0 -macsave=0 -sjis -string=const -object=dos_src.obj) && "
"${WIBO} ${COMPILER_DIR}/bin/elfcnv.exe dos_src.obj ${OUTPUT}"
)

SHC_V50R10 = SHCCompiler(id="shc-v5.0r10", platform=DREAMCAST, cc=DREAMCAST_CC_V50R10)

DREAMCAST_CC = (
'cat "$INPUT" | unix2dos > dos_src.c && '
"cp -r ${COMPILER_DIR}/bin/* . && "
"(SHC_LIB=. SHC_TMP=. ${WINE} ${COMPILER_DIR}/bin/shc.exe dos_src.c ${COMPILER_FLAGS} -comment=nonest -cpu=sh4 -division=cpu -fpu=single -endian=little -extra=a=1800 -pic=0 -macsave=0 -sjis -string=const -aggressive=2 -object=dos_src.obj) && "
"${WIBO} ${COMPILER_DIR}/bin/elfcnv.exe dos_src.obj ${OUTPUT}"
)

SHC_V50R26 = SHCCompiler(id="shc-v5.0r26", platform=DREAMCAST, cc=DREAMCAST_CC)
SHC_V50R28 = SHCCompiler(id="shc-v5.0r28", platform=DREAMCAST, cc=DREAMCAST_CC)
SHC_V50R31 = SHCCompiler(id="shc-v5.0r31", platform=DREAMCAST, cc=DREAMCAST_CC)
SHC_V50R32 = SHCCompiler(id="shc-v5.0r32", platform=DREAMCAST, cc=DREAMCAST_CC)
SHC_V51R01 = SHCCompiler(id="shc-v5.1r01", platform=DREAMCAST, cc=DREAMCAST_CC)
SHC_V51R03 = SHCCompiler(id="shc-v5.1r03", platform=DREAMCAST, cc=DREAMCAST_CC)
SHC_V51R04 = SHCCompiler(id="shc-v5.1r04", platform=DREAMCAST, cc=DREAMCAST_CC)
SHC_V51R08 = SHCCompiler(id="shc-v5.1r08", platform=DREAMCAST, cc=DREAMCAST_CC)
SHC_V51R11 = SHCCompiler(id="shc-v5.1r11", platform=DREAMCAST, cc=DREAMCAST_CC)
SHC_V51R13 = SHCCompiler(id="shc-v5.1r13", platform=DREAMCAST, cc=DREAMCAST_CC)

# PS2
IOP_GCC281 = GCCPS2Compiler(
Expand Down Expand Up @@ -1561,7 +1580,17 @@ def available_platforms() -> List[Platform]:
# Saturn
CYGNUS_2_7_96Q3,
# Dreamcast
SHC_V50R10,
SHC_V50R26,
SHC_V50R28,
SHC_V50R31,
SHC_V50R32,
SHC_V51R01,
SHC_V51R03,
SHC_V51R04,
SHC_V51R08,
SHC_V51R11,
SHC_V51R13,
# PS2
IOP_GCC281,
IOP_GCC2952_102,
Expand Down
10 changes: 10 additions & 0 deletions frontend/src/lib/i18n/locales/en/compilers.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,17 @@
"gcc2.7.2.2-mipsel": "gcc 2.7.2.2 + maspsx",
"gcc2.7.2.3-mipsel": "gcc 2.7.2.3 + maspsx",

"shc-v5.0r10": "SHC v5.0 (Release 10)",
"shc-v5.0r26": "SHC v5.0 (Release 26)",
"shc-v5.0r28": "SHC v5.0 (Release 28)",
"shc-v5.0r31": "SHC v5.0 (Release 31)",
"shc-v5.0r32": "SHC v5.0 (Release 32)",
"shc-v5.1r01": "SHC v5.1 (Release 1)",
"shc-v5.1r03": "SHC v5.1 (Release 3)",
"shc-v5.1r04": "SHC v5.1 (Release 4)",
"shc-v5.1r08": "SHC v5.1 (Release 8)",
"shc-v5.1r11": "SHC v5.1 (Release 11)",
"shc-v5.1r13": "SHC v5.1 (Release 13)",

"psyq3.3": "PSYQ3.3 (gcc 2.6.0 + aspsx 2.21)",
"psyq3.5": "PSYQ3.5 (gcc 2.6.0 + aspsx 2.34)",
Expand Down
Loading