Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHC/Dreamcast support #1276

Merged
merged 7 commits into from
Jun 10, 2024
Merged

SHC/Dreamcast support #1276

merged 7 commits into from
Jun 10, 2024

Conversation

Exant64
Copy link
Contributor

@Exant64 Exant64 commented Jun 10, 2024

Adds Dreamcast platform and SHC compiler matching support (specifically, SHC v5.1 r11 compiler)

backend/Dockerfile Outdated Show resolved Hide resolved
@@ -502,6 +508,27 @@ def available_platforms() -> List[Platform]:
cc=SATURN_CC,
)

DREAMCAST_CC = (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this be tidied up?

could/should any of those compiler flags be not hard-coded?

@@ -502,6 +510,19 @@ def available_platforms() -> List[Platform]:
cc=SATURN_CC,
)

DREAMCAST_CC = (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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}"
)

@mkst mkst merged commit bd7dac6 into decompme:main Jun 10, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants