User Tools

Site Tools


gba:guide:memory_management

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
gba:guide:memory_management [2026/11/05 19:27] – asiegba:guide:memory_management [2026/11/05 19:28] (current) – asie
Line 11: Line 11:
 <code C> <code C>
 __attribute__((section(".iwram.fast_variable"))) __attribute__((section(".iwram.fast_variable")))
-int fast_variable;+int fast_variable = 1234; 
 + 
 +__attribute__((section(".bss.iwram.zeroed_fast_variable"))) 
 +int zeroed_fast_variable; // BSS => zeroed on startup
  
 __attribute__((section(".ewram.my_function"))) __attribute__((section(".ewram.my_function")))
gba/guide/memory_management.txt · Last modified: by asie