cpupara.pas 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. $Id$
  3. Copyright (c) 2002 by Florian Klaempfl
  4. Generates the argument location information for i386
  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 i386.
  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. ti386paramanager = 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 ti386paramanager.getintparaloc(nr : longint) : tparalocation;
  40. begin
  41. end;
  42. procedure ti386paramanager.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:=ti386paramanager.create;
  51. end.
  52. {
  53. $Log$
  54. Revision 1.2 2002-07-11 14:41:32 florian
  55. * start of the new generic parameter handling
  56. Revision 1.1 2002/07/07 09:52:33 florian
  57. * powerpc target fixed, very simple units can be compiled
  58. * some basic stuff for better callparanode handling, far from being finished
  59. }