return (VECTOR_REF (block, ((VECTOR_LENGTH (block)) - 1)));
}
+/* Returns offsets of entry points from start of block in byte units
+ (not instruction units -- the debug data (.bci files) generated by
+ the compiler specify address units). */
+
unsigned long
cc_entry_to_block_offset (SCHEME_OBJECT entry)
{
- return ((CC_ENTRY_ADDRESS (entry))
- - ((insn_t *) (cc_entry_to_block_address (entry))));
+ return (((const uint8_t *) (CC_ENTRY_ADDRESS (entry)))
+ - ((const uint8_t *) (cc_entry_to_block_address (entry))));
}
unsigned long
cc_return_to_block_offset (SCHEME_OBJECT ret)
{
- return ((CC_RETURN_ADDRESS_TO_ENTRY_ADDRESS (CC_RETURN_ADDRESS (ret)))
- - ((insn_t *) (cc_return_to_block_address (ret))));
+ return (((const uint8_t *)
+ (CC_RETURN_ADDRESS_TO_ENTRY_ADDRESS (CC_RETURN_ADDRESS (ret))))
+ - ((const uint8_t *) (cc_return_to_block_address (ret))));
}
bool