cpupara.pas 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. {
  2. $Id$
  3. Copyright (c) 2002 by Florian Klaempfl
  4. Generates the argument location information for x86-64 target
  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 x86-64 target.
  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. tx86_64paramanager = class(tparamanager)
  33. function getintparaloc(nr : longint) : tparalocation;override;
  34. procedure create_param_loc_info(p : tabstractprocdef);override;
  35. end;
  36. implementation
  37. uses
  38. verbose;
  39. function tx86_64paramanager.getintparaloc(nr : longint) : tparalocation;
  40. begin
  41. end;
  42. procedure tx86_64paramanager.create_param_loc_info(p : tabstractprocdef);
  43. begin
  44. { set default para_alignment to target_info.stackalignment }
  45. { if para_alignment=0 then
  46. para_alignment:=aktalignment.paraalign;
  47. }
  48. end;
  49. begin
  50. paramanager:=tx86_64paramanager.create;
  51. end.
  52. {
  53. $Log$
  54. Revision 1.1 2002-07-24 22:38:15 florian
  55. + initial release of x86-64 target code
  56. }