|
|
1.1 root 1: /* Bytecode definitions for GNU C-compiler. 1.1.1.2 ! root 2: Copyright (C) 1993, 1994 Free Software Foundation, Inc. 1.1 root 3: 4: This file is part of GNU CC. 5: 6: GNU CC is free software; you can redistribute it and/or modify 7: it under the terms of the GNU General Public License as published by 8: the Free Software Foundation; either version 2, or (at your option) 9: any later version. 10: 11: GNU CC is distributed in the hope that it will be useful, 12: but WITHOUT ANY WARRANTY; without even the implied warranty of 13: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14: GNU General Public License for more details. 15: 16: You should have received a copy of the GNU General Public License 17: along with GNU CC; see the file COPYING. If not, write to 18: the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 19: 20: 21: extern int output_bytecode; 22: extern int stack_depth; 23: extern int max_stack_depth; 24: 25: /* Emit DI constant according to target machine word ordering */ 26: 1.1.1.2 ! root 27: #if WORDS_BIG_ENDIAN 1.1 root 28: 29: #define bc_emit_bytecode_DI_const(CST) \ 30: { int opcode; \ 31: opcode = TREE_INT_CST_HIGH (CST); \ 32: bc_emit_bytecode_const ((char *) &opcode, sizeof opcode); \ 33: opcode = TREE_INT_CST_LOW (CST); \ 34: bc_emit_bytecode_const ((char *) &opcode, sizeof opcode); \ 35: } 36: 37: #else 38: 39: #define bc_emit_bytecode_DI_const(CST) \ 40: { int opcode; \ 41: opcode = TREE_INT_CST_LOW (CST); \ 42: bc_emit_bytecode_const ((char *) &opcode, sizeof opcode); \ 43: opcode = TREE_INT_CST_HIGH (CST); \ 44: bc_emit_bytecode_const ((char *) &opcode, sizeof opcode); \ 45: } 46: 47: #endif 48: 49: 50: extern void bc_expand_expr (); 51: extern void bc_output_data_constructor (); 52: extern void bc_store_field (); 53: extern void bc_load_bit_field (); 54: extern void bc_store_bit_field (); 55: extern void bc_push_offset_and_size (); 56: extern void bc_init_mode_to_code_map (); 57: 58: /* These are just stubs, so the compiler will compile for targets 59: that aren't yet supported by the bytecode generator. */ 60: 61: #ifndef TARGET_SUPPORTS_BYTECODE 62: 63: #define MACHINE_SEG_ALIGN 1 64: #define INT_ALIGN 1 65: #define PTR_ALIGN 1 66: #define NAMES_HAVE_UNDERSCORES 67: #define BC_NOP (0) 68: #define BC_GLOBALIZE_LABEL(FP, NAME) BC_NOP 69: #define BC_OUTPUT_COMMON(FP, NAME, SIZE, ROUNDED) BC_NOP 70: #define BC_OUTPUT_LOCAL(FP, NAME, SIZE, ROUNDED) BC_NOP 71: #define BC_OUTPUT_ALIGN(FP, ALIGN) BC_NOP 72: #define BC_OUTPUT_LABEL(FP, NAME) BC_NOP 73: #define BC_OUTPUT_SKIP(FP, SIZE) BC_NOP 74: #define BC_OUTPUT_LABELREF(FP, NAME) BC_NOP 75: #define BC_OUTPUT_FLOAT(FP, VAL) BC_NOP 76: #define BC_OUTPUT_DOUBLE(FP, VAL) BC_NOP 77: #define BC_OUTPUT_BYTE(FP, VAL) BC_NOP 78: #define BC_OUTPUT_FILE ASM_OUTPUT_FILE 79: #define BC_OUTPUT_ASCII ASM_OUTPUT_ASCII 80: #define BC_OUTPUT_IDENT ASM_OUTPUT_IDENT 81: #define BCXSTR(RTX) ((RTX)->bc_label) 82: #define BC_WRITE_FILE(FP) BC_NOP 83: #define BC_WRITE_SEGSYM(SEGSYM, FP) BC_NOP 84: #define BC_WRITE_RELOC_ENTRY(SEGRELOC, FP, OFFSET) BC_NOP 85: #define BC_START_BYTECODE_LINE(FP) BC_NOP 86: #define BC_WRITE_BYTECODE(SEP, VAL, FP) BC_NOP 87: #define BC_WRITE_RTL(R, FP) BC_NOP 88: #define BC_EMIT_TRAMPOLINE(TRAMPSEG, CALLINFO) BC_NOP 89: #define VALIDATE_STACK BC_NOP 90: 91: #endif /* !TARGET_SUPPORTS_BYTECODE */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.