cpunode.pas 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. $Id$
  3. Copyright (c) 2000-2002 by Florian Klaempfl
  4. Includes the i386 code generator
  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 cpunode;
  19. {$i fpcdefs.inc}
  20. interface
  21. implementation
  22. uses
  23. ncgbas,ncgflw,ncgcnv,ncgld,ncgmem,ncgcon,ncgset,
  24. n386add,n386cal,n386con,n386cnv,n386flw,n386mat,n386mem,
  25. n386set,n386inl,n386opt,
  26. { this not really a node }
  27. n386obj, rgcpu;
  28. end.
  29. {
  30. $Log$
  31. Revision 1.14 2002-07-06 20:27:26 carl
  32. + generic set handling
  33. Revision 1.13 2002/05/18 13:34:22 peter
  34. * readded missing revisions
  35. Revision 1.12 2002/05/16 19:46:50 carl
  36. + defines.inc -> fpcdefs.inc to avoid conflicts if compiling by hand
  37. + try to fix temp allocation (still in ifdef)
  38. + generic constructor calls
  39. + start of tassembler / tmodulebase class cleanup
  40. Revision 1.10 2002/05/13 19:54:37 peter
  41. * removed n386ld and n386util units
  42. * maybe_save/maybe_restore added instead of the old maybe_push
  43. Revision 1.9 2002/04/19 15:39:35 peter
  44. * removed some more routines from cga
  45. * moved location_force_reg/mem to ncgutil
  46. * moved arrayconstructnode secondpass to ncgld
  47. Revision 1.8 2002/03/31 20:26:38 jonas
  48. + a_loadfpu_* and a_loadmm_* methods in tcg
  49. * register allocation is now handled by a class and is mostly processor
  50. independent (+rgobj.pas and i386/rgcpu.pas)
  51. * temp allocation is now handled by a class (+tgobj.pas, -i386\tgcpu.pas)
  52. * some small improvements and fixes to the optimizer
  53. * some register allocation fixes
  54. * some fpuvaroffset fixes in the unary minus node
  55. * push/popusedregisters is now called rg.save/restoreusedregisters and
  56. (for i386) uses temps instead of push/pop's when using -Op3 (that code is
  57. also better optimizable)
  58. * fixed and optimized register saving/restoring for new/dispose nodes
  59. * LOC_FPU locations now also require their "register" field to be set to
  60. R_ST, not R_ST0 (the latter is used for LOC_CFPUREGISTER locations only)
  61. - list field removed of the tnode class because it's not used currently
  62. and can cause hard-to-find bugs
  63. }