mirror of
https://github.com/pret/pokeemerald.git
synced 2026-11-07 05:47:09 -06:00
Some checks failed
CI / build (push) Has been cancelled
Memory region Used Size Region Size %age Used
EWRAM: 249700 B 256 KB 95.25%
IWRAM: 30892 B 32 KB 94.27%
ROM: 14929764 B 32 MB 44.49%
SaveBlock1: 15752 B 15872 B 99.24%
SaveBlock2: 3884 B 3968 B 97.88%
PokemonStorage: 33744 B 35712 B 94.49%
If the 'struct' doesn't fit the space allocated for it you'll get an
error, e.g. increasing 'TOTAL_BOXES' to 15 causes:
arm-none-eabi-ld: region `PokemonStorage' overflowed by 444 bytes
The Hall of Fame, Recorded Battle, and Trainer Hill regions are not
included in the memory region output.
'memory.txt' may contain 'cpp' directives. Any output from '#include'd
files is discarded.
26 lines
650 B
Awk
26 lines
650 B
Awk
# Processes 'cpp' output and discards lines that don't originate in the
|
|
# top-level file.
|
|
|
|
# This is used to prevent C definitions etc leaking into linker scripts,
|
|
# but as a consequence linker script commands from those files will be
|
|
# ignored. It's unlikely this limitation will ever matter.
|
|
|
|
# FIXME: Linemarkers are not correctly processed, so if 'cpp' skips any
|
|
# output (e.g. due to a top-level '#if 0') the error messages will be
|
|
# difficult to understand.
|
|
|
|
BEGIN {
|
|
getline
|
|
toplevel = $3
|
|
at_toplevel = 0
|
|
}
|
|
|
|
/^#/ {
|
|
if (at_toplevel) print ""
|
|
at_toplevel = $2 != 0 && $3 == toplevel
|
|
}
|
|
|
|
!/^#/ {
|
|
if (at_toplevel) print $0
|
|
}
|