Alien-LibJIT
view release on metacpan or search on metacpan
libjit/jit/jit-gen-arm.h view on Meta::CPAN
/*
* jit-gen-arm.h - Code generation macros for the ARM processor.
*
* Copyright (C) 2003, 2004 Southern Storm Software, Pty Ltd.
* Copyright (C) 2008, 2009 Michele Tartara <mikyt@users.sourceforge.net>
*
* This file is part of the libjit library.
*
* The libjit library is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation, either version 2.1 of
* the License, or (at your option) any later version.
*
* The libjit library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with the libjit library. If not, see
* <http://www.gnu.org/licenses/>.
*/
#ifndef _JIT_GEN_ARM_H
#define _JIT_GEN_ARM_H
#include <assert.h>
#include <jit-rules-arm.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Register numbers.
*/
typedef enum
{
ARM_R0 = 0,
ARM_R1 = 1,
ARM_R2 = 2,
ARM_R3 = 3,
ARM_R4 = 4,
ARM_R5 = 5,
ARM_R6 = 6,
ARM_R7 = 7,
ARM_R8 = 8,
ARM_R9 = 9,
ARM_R10 = 10,
ARM_R11 = 11,
ARM_R12 = 12,
ARM_R13 = 13,
ARM_R14 = 14,
ARM_R15 = 15,
ARM_FP = ARM_R11, /* Frame pointer */
ARM_LINK = ARM_R14, /* Link register */
ARM_PC = ARM_R15, /* Program counter */
ARM_WORK = ARM_R12, /* Work register that we can destroy */
ARM_SP = ARM_R13 /* Stack pointer */
} ARM_REG;
( run in 2.007 seconds using v1.01-cache-2.11-cpan-5b529ec07f3 )