From dcf987b6da372b55c36628b88f5d8e70596be6cb Mon Sep 17 00:00:00 2001 From: Drahflow Date: Wed, 9 Jan 2013 02:44:10 +0100 Subject: Function memory layout --- notes | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'notes') diff --git a/notes b/notes index 99dcba4..b45aec3 100644 --- a/notes +++ b/notes @@ -168,7 +168,21 @@ Small set in between === Extension Area === * Length in bytes (including header) - bit 63-60: 0 0 1 1 + bit 63-60: 0 1 0 0 bit 59: reserved for GC * data [ ]* + +=== Function === +* Length in bytes (including header) + bit 63-60: 0 1 0 1 + bit 59: reserved for GC +* scope pointer +* type pointer (0 if untyped) +* code pointer + +=== Function Code === +* Length in bytes (including header) + bit 63-60: 0 1 1 0 + bit 59: reserved for GC +* [ ]* -- cgit v1.2.3