cgconst.pas 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. $Id$
  3. Copyright (c) 1998-2001 by Florian Klaempfl
  4. This units declares some code generator specific constants
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. ****************************************************************************
  17. }
  18. unit cgconst;
  19. interface
  20. type
  21. TOpCg = (OP_ADD,OP_AND,OP_DIV,OP_IDIV,OP_IMUL,OP_MUL,OP_NEG,OP_NOT,
  22. OP_OR,OP_SAR,OP_SHL,OP_SHR,OP_SUB,OP_XOR);
  23. TOpCmp = (OC_NONE,OC_EQ,OC_GT,OC_LT,OC_GTE,OC_LTE,OC_NE,OC_BE,OC_B,
  24. OC_AE,OC_A);
  25. TCgSize = (OS_NO,OS_8,OS_16,OS_32,OS_64);
  26. const
  27. { defines the default address size for a processor }
  28. { and defines the natural int size for a processor }
  29. {$ifdef i386}
  30. OS_ADDR = OS_32;
  31. OS_INT = OS_32;
  32. {$endif i386}
  33. {$ifdef alpha}
  34. OS_ADDR = OS_64;
  35. OS_INT = OS_64;
  36. {$endif alpha}
  37. {$ifdef powerpc}
  38. OS_ADDR = OS_32;
  39. OS_INT = OS_32;
  40. {$endif powercc}
  41. {$ifdef ia64}
  42. OS_ADDR = OS_64;
  43. OS_INT = OS_64;
  44. {$endif ia64}
  45. implementation
  46. end.
  47. {
  48. $Log$
  49. Revision 1.1 2001-08-26 13:36:37 florian
  50. * some cg reorganisation
  51. * some PPC updates
  52. }