GCC Middle and Back End API Reference
|
#include "hooks.h"
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) |
#define HOST_HOOKS_EXTRA_SIGNALS hook_void_void |
Default macros to initialize the lang_hooks data structure. Copyright (C) 2003-2013 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.
GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/.
#define HOST_HOOKS_GT_PCH_ALLOC_GRANULARITY default_gt_pch_alloc_granularity |
#define HOST_HOOKS_GT_PCH_GET_ADDRESS default_gt_pch_get_address |
#define HOST_HOOKS_GT_PCH_USE_ADDRESS default_gt_pch_use_address |
#define HOST_HOOKS_INITIALIZER |
The structure is defined in hosthooks.h.
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 limit.
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 | |||
) |