cpunode.pas 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. $Id$
  3. Copyright (c) 2000 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 defines.inc}
  20. interface
  21. implementation
  22. uses
  23. ncgbas,ncgflw,ncgcnv,ncgmem,ncgcon,
  24. n386ld,n386add,n386cal,n386con,n386flw,n386mat,n386mem,
  25. n386set,n386inl,n386opt,
  26. { this not really a node }
  27. n386obj;
  28. end.
  29. {
  30. $Log$
  31. Revision 1.7 2001-09-30 16:17:18 jonas
  32. * made most constant and mem handling processor independent
  33. Revision 1.6 2001/09/29 21:32:47 jonas
  34. * almost all second pass typeconvnode helpers are now processor independent
  35. * fixed converting boolean to int64/qword
  36. * fixed register allocation bugs which could cause internalerror 10
  37. * isnode and asnode are completely processor indepent now as well
  38. * fpc_do_as now returns its class argument (necessary to be able to use it
  39. properly with compilerproc)
  40. Revision 1.5 2001/09/28 20:39:33 jonas
  41. * changed all flow control structures (except for exception handling
  42. related things) to processor independent code (in new ncgflw unit)
  43. + generic cgobj unit which contains lots of code generator helpers with
  44. global "cg" class instance variable
  45. + cgcpu unit for i386 (implements processor specific routines of the above
  46. unit)
  47. * updated cgbase and cpubase for the new code generator units
  48. * include ncgflw unit in cpunode unit
  49. Revision 1.4 2001/05/18 22:31:06 peter
  50. * tasmnode.pass_2 is independent of cpu, moved to ncgbas
  51. * include ncgbas for independent nodes
  52. Revision 1.3 2001/04/21 13:37:17 peter
  53. * made tclassheader using class of to implement cpu dependent code
  54. Revision 1.2 2000/12/31 11:14:11 jonas
  55. + implemented/fixed docompare() mathods for all nodes (not tested)
  56. + nopt.pas, nadd.pas, i386/n386opt.pas: optimized nodes for adding strings
  57. and constant strings/chars together
  58. * n386add.pas: don't copy temp strings (of size 256) to another temp string
  59. when adding
  60. Revision 1.1 2000/10/15 09:39:37 peter
  61. * moved cpu*.pas to i386/
  62. * renamed n386 to common cpunode
  63. Revision 1.1 2000/10/14 10:14:47 peter
  64. * moehrendorf oct 2000 rewrite
  65. }