home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / kaffe-0.5p4-src.tgz / tar.out / contrib / kaffe / kaffevm / jit / codeinfo.h < prev    next >
C/C++ Source or Header  |  1996-09-28  |  617b  |  30 lines

  1. /* codeinfo.h
  2.  * Defines the info we hold on code while translating it.
  3.  *
  4.  * Copyright (c) 1996 Systems Architecture Research Centre,
  5.  *           City University, London, UK.
  6.  *
  7.  * See the file "license.terms" for information on usage and redistribution
  8.  * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
  9.  *
  10.  * Written by Tim Wilkinson <tim@sarc.city.ac.uk>, June 1996.
  11.  */
  12.  
  13. #ifndef __codeinfo_h
  14. #define __codeinfo_h
  15.  
  16. #define INORM            0
  17. #define IBBSTART        1
  18. #define IEBSTART        2
  19. #define BLOCKPOINT(pc)        code[pc].block
  20.  
  21. typedef struct {
  22.     uint8    block;
  23.     int16    stackdepth;
  24.     uintp    pc;
  25. } codes;
  26.  
  27. extern codes* code;
  28.  
  29. #endif
  30.