cpupara.pas 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. Copyright (c) 2002 by Florian Klaempfl
  3. Generates the argument location information for the
  4. virtual instruction set machine
  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 bymethodpointer
  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. { Generates the argument location information for 680x0.
  19. }
  20. unit cpupara;
  21. {$i fpcdefs.inc}
  22. interface
  23. uses
  24. cpubase,
  25. symdef,paramgr;
  26. type
  27. { Returns the location for the nr-st 32 Bit int parameter
  28. if every parameter before is an 32 Bit int parameter as well
  29. and if the calling conventions for the helper routines of the
  30. rtl are used.
  31. }
  32. tcpuparamanager = class(tparamanager)
  33. function getintparaloc(nr : longint) : tparalocation;override;
  34. procedure create_param_loc_info(p : tabstractprocdef);override;
  35. function getselflocation(p : tabstractprocdef) : tparalocation;override;
  36. end;
  37. implementation
  38. uses
  39. verbose,
  40. globals,
  41. globtype,
  42. systems,
  43. cpuinfo,cginfo,cgbase,
  44. defutil;
  45. function tcpuparamanager.getintparaloc(nr : longint) : tparalocation;
  46. begin
  47. end;
  48. procedure tcpuparamanager.create_param_loc_info(p : tabstractprocdef);
  49. var
  50. param_offset : integer;
  51. hp : tparaitem;
  52. begin
  53. end;
  54. function tcpuparamanager.getselflocation(p : tabstractprocdef) : tparalocation;
  55. begin
  56. end;
  57. begin
  58. paramanager:=tcpuparamanager.create;
  59. end.