Back to index

plt-scheme  4.2.1
ffitarget.h
Go to the documentation of this file.
00001 /* -----------------------------------------------------------------*-C-*-
00002    ffitarget.h - Copyright (c) 1996-2003  Red Hat, Inc.
00003    Target configuration macros for SPARC.
00004 
00005    Permission is hereby granted, free of charge, to any person obtaining
00006    a copy of this software and associated documentation files (the
00007    ``Software''), to deal in the Software without restriction, including
00008    without limitation the rights to use, copy, modify, merge, publish,
00009    distribute, sublicense, and/or sell copies of the Software, and to
00010    permit persons to whom the Software is furnished to do so, subject to
00011    the following conditions:
00012 
00013    The above copyright notice and this permission notice shall be included
00014    in all copies or substantial portions of the Software.
00015 
00016    THE SOFTWARE IS PROVIDED ``AS IS'', WITHOUT WARRANTY OF ANY KIND, EXPRESS
00017    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00018    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00019    IN NO EVENT SHALL CYGNUS SOLUTIONS BE LIABLE FOR ANY CLAIM, DAMAGES OR
00020    OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
00021    ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
00022    OTHER DEALINGS IN THE SOFTWARE.
00023 
00024    ----------------------------------------------------------------------- */
00025 
00026 #ifndef LIBFFI_TARGET_H
00027 #define LIBFFI_TARGET_H
00028 
00029 /* ---- System specific configurations ----------------------------------- */
00030 
00031 #if defined(__arch64__) || defined(__sparcv9)
00032 #define SPARC64
00033 #endif
00034 
00035 #ifndef LIBFFI_ASM
00036 typedef unsigned long          ffi_arg;
00037 typedef signed long            ffi_sarg;
00038 
00039 typedef enum ffi_abi {
00040   FFI_FIRST_ABI = 0,
00041   FFI_V8,
00042   FFI_V8PLUS,
00043   FFI_V9,
00044 #ifdef SPARC64
00045   FFI_DEFAULT_ABI = FFI_V9,
00046 #else
00047   FFI_DEFAULT_ABI = FFI_V8,
00048 #endif
00049   FFI_LAST_ABI = FFI_DEFAULT_ABI + 1
00050 } ffi_abi;
00051 #endif
00052 
00053 /* ---- Definitions for closures ----------------------------------------- */
00054 
00055 #define FFI_CLOSURES 1
00056 #define FFI_NATIVE_RAW_API 0
00057 
00058 #ifdef SPARC64
00059 #define FFI_TRAMPOLINE_SIZE 24
00060 #else
00061 #define FFI_TRAMPOLINE_SIZE 16
00062 #endif
00063 
00064 #endif
00065