|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _SCM_LOADER_H_ |
|
#define _SCM_LOADER_H_ |
|
|
|
#include <libguile/scm.h> |
|
|
|
#ifdef BUILDING_LIBGUILE |
|
|
|
|
|
#ifdef WORDS_BIGENDIAN |
|
# define SCM_OBJCODE_ENDIANNESS "BE" |
|
#else |
|
# define SCM_OBJCODE_ENDIANNESS "LE" |
|
#endif |
|
|
|
#define _SCM_CPP_STRINGIFY(x) # x |
|
#define SCM_CPP_STRINGIFY(x) _SCM_CPP_STRINGIFY (x) |
|
|
|
|
|
#define SCM_OBJCODE_WORD_SIZE SCM_CPP_STRINGIFY (SIZEOF_VOID_P) |
|
|
|
|
|
#define SCM_OBJCODE_MAJOR_VERSION 4 |
|
#define SCM_OBJCODE_MINIMUM_MINOR_VERSION 2 |
|
#define SCM_OBJCODE_MINOR_VERSION 7 |
|
#define SCM_OBJCODE_MAJOR_VERSION_STRING \ |
|
SCM_CPP_STRINGIFY(SCM_OBJCODE_MAJOR_VERSION) |
|
#define SCM_OBJCODE_MINOR_VERSION_STRING \ |
|
SCM_CPP_STRINGIFY(SCM_OBJCODE_MINOR_VERSION) |
|
#define SCM_OBJCODE_VERSION_STRING \ |
|
SCM_OBJCODE_MAJOR_VERSION_STRING "." SCM_OBJCODE_MINOR_VERSION_STRING |
|
#define SCM_OBJCODE_MACHINE_VERSION_STRING \ |
|
SCM_OBJCODE_ENDIANNESS "-" SCM_OBJCODE_WORD_SIZE "-" SCM_OBJCODE_VERSION_STRING |
|
|
|
#endif |
|
|
|
SCM_API SCM scm_load_thunk_from_file (SCM filename); |
|
SCM_API SCM scm_load_thunk_from_memory (SCM bv); |
|
|
|
SCM_INTERNAL const uint8_t * |
|
scm_find_slot_map_unlocked (const uint32_t *ip); |
|
|
|
SCM_INTERNAL void scm_bootstrap_loader (void); |
|
SCM_INTERNAL void scm_init_loader (void); |
|
|
|
#endif |
|
|