Add gcc2.96#1979
Conversation
| GCC_296 = GCCCompiler( | ||
| id = "gcc2.96", | ||
| platform=GBA, | ||
| cc='"${COMPILER_DIR}"/usr/local/bin/arm-elf-gcc $COMPILER_FLAGS -S -o - "$INPUT" | arm-none-eabi-as -mcpu=arm7tdmi -o "$OUTPUT"' |
There was a problem hiding this comment.
any reason you aren't using usr/local/bin/arm-elf-as ? wont this affect matching?
There was a problem hiding this comment.
I don't think it should, most GBA games use modern gnu as as the assembler. We certainly do for the gs-decomp project as building the whole toolchain is a little more involved than just getting gcc / cc1.
E: To clearify: I kinda just mirrored a) the other gba compilers, b) our own Makefile :)
There was a problem hiding this comment.
If you guys are getting matches without needing era-specific assembler then all good - was just flagging to make sure it wasnt a mistake :)
|
Created a preset: https://decomp.me/preset/236. I can assign you as the owner once you've created a scratch on the site. |
Adds backend boilerplate for GCC 2.96, depends on decompme/compilers#73 .
GCC 2.96 is a development snapshot between GCC 2.95 "agbcc" and GCC 3 which already has a unified thumb/arm compiler in one binary (
-mthumb,-marm).It was used in the game Golden Sun for the GBA.
If possible it would be nice to have a compiler flag preset for Golden Sun 1, it uses caller-save r4 to perform some arcane magic: