mirror of
https://github.com/ProgramSnail/Lama.git
synced 2025-12-06 06:48:48 +00:00
Prototype of X86_64 migration
This commit is contained in:
parent
3fdc3e7f2a
commit
e77433e51c
21 changed files with 599 additions and 7165 deletions
|
|
@ -24,7 +24,7 @@
|
|||
# define DATA_HEADER_SZ (sizeof(size_t) + sizeof(size_t) + sizeof(int))
|
||||
#endif
|
||||
|
||||
#define MEMBER_SIZE sizeof(int)
|
||||
#define MEMBER_SIZE sizeof(long)
|
||||
|
||||
#define TO_DATA(x) ((data *)((char *)(x)-DATA_HEADER_SZ))
|
||||
#define TO_SEXP(x) ((sexp *)((char *)(x)-DATA_HEADER_SZ))
|
||||
|
|
@ -68,7 +68,7 @@ typedef struct {
|
|||
// last bit can be used because due to alignment we can assume that last two bits are always 0's
|
||||
size_t forward_address;
|
||||
int tag;
|
||||
int contents[0];
|
||||
long contents[0];
|
||||
} sexp;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue