;; YASM/NASM syntax ;; i386 assembly to demonstrate no initial heap global start section .text start: mov EAX,45 mov EBX,0 int 0x80 ;; step up to here with GDB; use cat /proc/PID/maps (NOT pmap(1)) to ;; to observe the SINGLE text segment, no DATA segment, and no HEAP ;; segment mov EBX,EAX add EBX,1000 mov EAX,45 int 0x80 ;; now observe that a [heap] segment has been created ;; mov EAX,1 int 0x80