GCC Middle and Back End API Reference
hosthooks-def.h File Reference

Go to the source code of this file.

Functions

void * default_gt_pch_get_address (size_t, int)
int default_gt_pch_use_address (void *, size_t, int, size_t)
size_t default_gt_pch_alloc_granularity (void)
void * mmap_gt_pch_get_address (size_t, int)
int mmap_gt_pch_use_address (void *, size_t, int, size_t)

Function Documentation

size_t default_gt_pch_alloc_granularity ( void  )
Default version of HOST_HOOKS_GT_PCH_GET_ADDRESS.   Return the
   alignment required for allocating virtual memory. Usually this is the
   same as pagesize.   

References getpagesize().

void* default_gt_pch_get_address ( size_t  size,
int  fd 
)
Default version of HOST_HOOKS_GT_PCH_GET_ADDRESS when mmap is not present.
   Select no address whatsoever, and let gt_pch_save choose what it will with
   malloc, presumably.   
int default_gt_pch_use_address ( void *  base,
size_t  size,
int  fd,
size_t  offset 
)
Default version of HOST_HOOKS_GT_PCH_USE_ADDRESS when mmap is not present.
   Allocate SIZE bytes with malloc.  Return 0 if the address we got is the
   same as base, indicating that the memory has been allocated but needs to
   be read in from the file.  Return -1 if the address differs, to relocation
   of the PCH file would be required.   
void* mmap_gt_pch_get_address ( size_t  ,
int   
)
int mmap_gt_pch_use_address ( void *  ,
size_t  ,
int  ,
size_t   
)