toolchain: Compute available RAM after static allocations