Linkerscript now tracks RAM/ROM usage

This commit is contained in:
Icedude907
2023-11-12 15:19:50 +13:00
parent 12a64fecb4
commit a0bf504bc1
6 changed files with 64 additions and 63 deletions

View File

@@ -1,8 +1,11 @@
#include "global.h"
#include "malloc.h"
static void *sHeapStart;
static u32 sHeapSize;
__attribute__((section("__EWRAM_HEAP"))) u8 gHeap[HEAP_SIZE] = {0};
#define MALLOC_SYSTEM_ID 0xA3A3
struct MemBlock {