cpupi.pas 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. {
  2. $Id$
  3. Copyright (c) 2002 by Florian Klaempfl
  4. This unit contains the CPU specific part of tprocinfo
  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. { This unit contains the CPU specific part of tprocinfo. }
  19. unit cpupi;
  20. {$i fpcdefs.inc}
  21. interface
  22. uses
  23. psub,procinfo;
  24. type
  25. tx86_64procinfo = class(tcgprocinfo)
  26. function calc_stackframe_size:longint;override;
  27. end;
  28. implementation
  29. uses
  30. cutils,
  31. tgobj;
  32. function tx86_64procinfo.calc_stackframe_size:longint;
  33. begin
  34. { RSP should be aligned on 16 bytes }
  35. result:=Align(tg.direction*tg.lasttemp,16);
  36. end;
  37. begin
  38. cprocinfo:=tx86_64procinfo;
  39. end.
  40. {
  41. $Log$
  42. Revision 1.3 2004-02-04 22:01:13 peter
  43. * first try to get cpupara working for x86_64
  44. Revision 1.2 2003/12/24 00:33:10 florian
  45. * x86-64 compilation fixed
  46. Revision 1.1 2003/01/05 13:36:54 florian
  47. * x86-64 compiles
  48. + very basic support for float128 type (x86-64 only)
  49. }