snapkitty
hardware
x86-64-asm
File size: 379 Bytes
42fb483
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
; memory.inc — Memory layout constants
; OBSERVED: ELF64 flat memory model, code/rodata/data/bss/heap/stack

%define HEAP_SIZE    (1024 * 1024 * 4)   ; 4MB heap
%define STACK_SIZE   (1024 * 1024)        ; 1MB stack guard
%define PROMPT_MAX   4096                  ; max prompt length

; Bump allocator state (in BSS)
; heap_base: resq 1
; heap_ptr:  resq 1
; heap_end:  resq 1