Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit cbefd73

Browse files
committed
Some tools align with SA2
1 parent b729dbb commit cbefd73

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

tools/_shared/arena_alloc/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ CC = gcc
33

44
SOURCE = arena_alloc.c
55

6+
# Clear the default suffixes
7+
.SUFFIXES:
8+
69
.PHONY: all clean
710

811
all: libarena_alloc.a

tools/_shared/arena_alloc/arena_alloc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ static void *memArenaVirtualAlloc(void* baseAddress, size_t size) {
5353
u64 memoryAmount = ARENA_SIZE;
5454
memory = VirtualAlloc(baseAddress, memoryAmount, (MEM_COMMIT | MEM_RESERVE), PAGE_READWRITE);
5555
#else
56-
// TODO/TEMP: Just reserve 2GB for each arena
57-
u64 memoryAmount = GetGigabytes(1);
56+
u64 memoryAmount = ARENA_SIZE;
5857
printf("WARNING: OS-specific SDK not found. Using malloc.\n");
5958
memory = malloc(memoryAmount);
6059

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@echo off
22

33
REM Debug version - creates a PDB file
4-
cl /Od /Zi -I ../arena_alloc example_main.c parser.c ../arena_alloc/arena_alloc.c
4+
cl /Od /Zi -I ../arena_alloc example_main.c c_header_parser.c ../arena_alloc/arena_alloc.c
55

66
REM Release version
7-
REM cl /O2 -I ../arena_alloc example_main.c parser.c ../arena_alloc/arena_alloc.c
7+
REM cl /O2 -I ../arena_alloc example_main.c c_header_parser.c ../arena_alloc/arena_alloc.c

0 commit comments

Comments
 (0)