Some tools align with SA2

This commit is contained in:
JaceCear committed 2025-12-07 15:39:56 +01:00
1 parent b729dbb542
commit cbefd73d20
3 files changed
+6 -4

No files matched your search

+3
View File
@@ -3,6 +3,9 @@ CC = gcc
SOURCE = arena_alloc.c
# Clear the default suffixes
.SUFFIXES:
.PHONY: all clean
all: libarena_alloc.a
+1 -2
View File
@@ -53,8 +53,7 @@ static void *memArenaVirtualAlloc(void* baseAddress, size_t size) {
u64 memoryAmount = ARENA_SIZE;
memory = VirtualAlloc(baseAddress, memoryAmount, (MEM_COMMIT | MEM_RESERVE), PAGE_READWRITE);
#else
// TODO/TEMP: Just reserve 2GB for each arena
u64 memoryAmount = GetGigabytes(1);
u64 memoryAmount = ARENA_SIZE;
printf("WARNING: OS-specific SDK not found. Using malloc.\n");
memory = malloc(memoryAmount);
+2 -2
View File
@@ -1,7 +1,7 @@
@echo off
REM Debug version - creates a PDB file
cl /Od /Zi -I ../arena_alloc example_main.c parser.c ../arena_alloc/arena_alloc.c
cl /Od /Zi -I ../arena_alloc example_main.c c_header_parser.c ../arena_alloc/arena_alloc.c
REM Release version
REM cl /O2 -I ../arena_alloc example_main.c parser.c ../arena_alloc/arena_alloc.c
REM cl /O2 -I ../arena_alloc example_main.c c_header_parser.c ../arena_alloc/arena_alloc.c