1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- #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 1
- #define SCM_OBJCODE_MINOR_VERSION 1
- #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
|