llvm-mos / llvm-mos-sdk

SDK for developing with the llvm-mos compiler
https://www.llvm-mos.org
Other
270 stars 56 forks source link

Atari 8-bit MegaCart (bank-switched) cartridge support #272

Closed cwedgwood closed 9 months ago

cwedgwood commented 9 months ago

Support for MegaCart cartridges from 16 KiB to 512 KiB, with handling for SIC! cartridges.

mysterymath commented 9 months ago

Unfortunately, I've had to revert this; it didn't build in CI:

[2/2] Linking C executable minimal
FAILED: minimal 
: && /home/runner/work/llvm-mos-sdk/llvm-mos-sdk/llvm-mos/bin/mos-clang --config /home/runner/work/llvm-mos-sdk/llvm-mos-sdk/build/mos-platform/build/install/bin/mos-atari8-mega.cfg -Os -DNDEBUG  CMakeFiles/minimal.dir/minimal.c.obj -o minimal   && :
ld.lld: error: section '.bank8' will not fit in region 'bank8': overflowed by 175 bytes
ld.lld: error: section '.bank9' will not fit in region 'bank9': overflowed by 175 bytes
ld.lld: error: section '.bank10' will not fit in region 'bank10': overflowed by 175 bytes
ld.lld: error: section '.bank11' will not fit in region 'bank11': overflowed by 175 bytes
ld.lld: error: section '.bank12' will not fit in region 'bank12': overflowed by 175 bytes
ld.lld: error: section '.bank13' will not fit in region 'bank13': overflowed by 175 bytes
ld.lld: error: section '.bank14' will not fit in region 'bank14': overflowed by 175 bytes
ld.lld: error: section '.bank15' will not fit in region 'bank15': overflowed by 175 bytes
ld.lld: error: section '.bank16' will not fit in region 'bank16': overflowed by 175 bytes
ld.lld: error: section '.bank17' will not fit in region 'bank17': overflowed by 175 bytes
ld.lld: error: section '.bank18' will not fit in region 'bank18': overflowed by 175 bytes
ld.lld: error: section '.bank19' will not fit in region 'bank19': overflowed by 175 bytes
ld.lld: error: section '.bank20' will not fit in region 'bank20': overflowed by 175 bytes
ld.lld: error: section '.bank21' will not fit in region 'bank21': overflowed by 175 bytes
ld.lld: error: section '.bank22' will not fit in region 'bank22': overflowed by 175 bytes
ld.lld: error: section '.bank23' will not fit in region 'bank23': overflowed by 175 bytes
ld.lld: error: section '.bank24' will not fit in region 'bank24': overflowed by 175 bytes
ld.lld: error: section '.bank25' will not fit in region 'bank25': overflowed by 175 bytes
ld.lld: error: section '.bank26' will not fit in region 'bank26': overflowed by 175 bytes
ld.lld: error: section '.bank27' will not fit in region 'bank27': overflowed by 175 bytes
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
mos-clang: error: ld.lld command failed with exit code 1 (use -v to see invocation)
cwedgwood commented 9 months ago

@mysterymath thanks, the default cart size is 128, so anything over that is breaking. I'll see what I can do.