cpupara.pas 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. $Id$
  3. Copyright (c) 2002 by Florian Klaempfl
  4. Generates the argument location information for the
  5. virtual instruction set machine
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published bymethodpointer
  8. the Free Software Foundation; either version 2 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License
  15. along with this program; if not, write to the Free Software
  16. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. ****************************************************************************
  18. }
  19. { Generates the argument location information for 680x0.
  20. }
  21. unit cpupara;
  22. {$i fpcdefs.inc}
  23. interface
  24. uses
  25. cpubase,
  26. symdef,paramgr;
  27. type
  28. { Returns the location for the nr-st 32 Bit int parameter
  29. if every parameter before is an 32 Bit int parameter as well
  30. and if the calling conventions for the helper routines of the
  31. rtl are used.
  32. }
  33. tcpuparamanager = class(tparamanager)
  34. function getintparaloc(nr : longint) : tparalocation;override;
  35. procedure create_param_loc_info(p : tabstractprocdef);override;
  36. function getselflocation(p : tabstractprocdef) : tparalocation;override;
  37. end;
  38. implementation
  39. uses
  40. verbose,
  41. globals,
  42. globtype,
  43. systems,
  44. cpuinfo,cginfo,cgbase,
  45. defutil;
  46. function tcpuparamanager.getintparaloc(nr : longint) : tparalocation;
  47. begin
  48. end;
  49. procedure tcpuparamanager.create_param_loc_info(p : tabstractprocdef);
  50. var
  51. param_offset : integer;
  52. hp : tparaitem;
  53. begin
  54. end;
  55. function tcpuparamanager.getselflocation(p : tabstractprocdef) : tparalocation;
  56. begin
  57. end;
  58. begin
  59. paramanager:=tcpuparamanager.create;
  60. end.
  61. {
  62. $Log$
  63. Revision 1.1 2003-02-02 19:25:54 carl
  64. * Several bugfixes for m68k target (register alloc., opcode emission)
  65. + VIS target
  66. + Generic add more complete (still not verified)
  67. }