gbdev / gbdev/rgbds

Add a way to force two sections to be in the same bank

Open
#244 10 comments 5 reactions 0 assignees View on GitHub
enhancement rgblink
Dominant language
C++
Stars
1.6k
Forks
193
Avg merge
22h 17m
Merged PRs (30d)
26

Description

As discussed here: https://github.com/rednex/rgbds/issues/133

This could either be done in source code or by using the linkerscript.
```
SECTION "Code", ROMX
...
SECTION "Data", ROMX, BANK["Code"]
```
This would allow to have sections with different alignments if needed.

Contributor guide

Open the contributing guide

Research direction

Start by reading the linked issue #133 and tracing how SECTION declarations and linker scripts assign sections to banks. The work is done when two sections can be forced into the same bank while retaining different alignments, using either source syntax or the linker script.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.