mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 05:19:40 +02:00

http://svn.freepascal.org/svn/fpc/branches/avr ........ r5891 | florian | 2007-01-11 17:30:12 +0100 (Do, 11 Jan 2007) | 2 lines + some initial work ........ r10170 | florian | 2008-02-03 11:02:04 +0100 (So, 03 Feb 2008) | 2 lines * continued to work on avr port ........ r10180 | florian | 2008-02-03 15:29:30 +0100 (So, 03 Feb 2008) | 2 lines + a lot of skeleton code for avr added ........ git-svn-id: trunk@10186 -
124 lines
2.3 KiB
PHP
124 lines
2.3 KiB
PHP
{$mode objfpc}
|
|
{$asmmode default}
|
|
{$H-}
|
|
{$goto on}
|
|
{$inline on}
|
|
|
|
{$ifdef win32}
|
|
{ 256 MB stack }
|
|
{ under windows the stack can't grow }
|
|
{$MEMORY 256000000}
|
|
{$else win32}
|
|
{$ifdef win64}
|
|
{ 512 MB stack }
|
|
{ under windows the stack can't grow }
|
|
{$MEMORY 512000000}
|
|
{$else win64}
|
|
{ 1 MB stack }
|
|
{$MEMORY 1000000}
|
|
{$endif win64}
|
|
{$endif win32}
|
|
|
|
{ This reduces the memory requirements a lot }
|
|
{$PACKENUM 1}
|
|
{$ifdef FPC_HAS_VARSETS}
|
|
{$ifndef FPC_BIG_ENDIAN}
|
|
{ $define USE_PACKSET1}
|
|
{$endif}
|
|
{$endif FPC_HAS_VARSETS}
|
|
|
|
{$ifdef USE_PACKSET1}
|
|
{$PACKSET 1}
|
|
{$endif USE_PACKSET1}
|
|
|
|
{ We don't use exceptions, so turn off the implicit
|
|
exceptions in the constructors }
|
|
{$IMPLICITEXCEPTIONS OFF}
|
|
|
|
{ Inline small functions, but not when EXTDEBUG is used }
|
|
{$ifndef EXTDEBUG}
|
|
{$define USEINLINE}
|
|
{$endif EXTDEBUG}
|
|
|
|
{$define USEEXCEPT}
|
|
|
|
{$ifdef cpuarm}
|
|
{$packrecords c}
|
|
{$endif cpuarm}
|
|
|
|
{$ifdef i386}
|
|
{$define cpu32bit}
|
|
{$define x86}
|
|
{$define cpuflags}
|
|
{$define cpuextended}
|
|
{$define USECMOV}
|
|
{$define SUPPORT_MMX}
|
|
{$define cpumm}
|
|
{$define fewintregisters}
|
|
{$endif i386}
|
|
|
|
{$ifdef x86_64}
|
|
{$define x86}
|
|
{$define cpuflags}
|
|
{$define cpu64bit}
|
|
{$define cpuextended}
|
|
{$define cpufloat128}
|
|
{$define cputargethasfixedstack}
|
|
{$define USECMOV}
|
|
{$define cpumm}
|
|
{$endif x86_64}
|
|
|
|
{$ifdef alpha}
|
|
{$define cpu64bit}
|
|
{$endif alpha}
|
|
|
|
{$ifdef sparc}
|
|
{$define cpu32bit}
|
|
{$define cpuflags}
|
|
{$define cputargethasfixedstack}
|
|
{$endif sparc}
|
|
|
|
{$ifdef powerpc}
|
|
{$define cpu32bit}
|
|
{$define cpuflags}
|
|
{$define cputargethasfixedstack}
|
|
{$define cpumm}
|
|
{$endif powerpc}
|
|
|
|
{$ifdef powerpc64}
|
|
{$define cpu64bit}
|
|
{$define cpuflags}
|
|
{$define cputargethasfixedstack}
|
|
{$define cpumm}
|
|
{$endif powerpc64}
|
|
|
|
{$ifdef arm}
|
|
{$define cpu32bit}
|
|
{$define cpuflags}
|
|
{$define cpufpemu}
|
|
{$define cpuneedsdiv32helper}
|
|
{$define cputargethasfixedstack}
|
|
{$endif arm}
|
|
|
|
{$ifdef m68k}
|
|
{$define cpu32bit}
|
|
{$define cpuflags}
|
|
{$define cpufpemu}
|
|
{$endif m68k}
|
|
|
|
{$ifdef avr}
|
|
{$define cpu16bit}
|
|
{$define cpuflags}
|
|
{$define cpunofpu}
|
|
{$endif avr}
|
|
|
|
{$IFDEF MACOS}
|
|
{$DEFINE USE_FAKE_SYSUTILS}
|
|
{$ENDIF MACOS}
|
|
|
|
{$define SUPPORT_UNALIGNED}
|
|
|
|
{$if not defined(cpui386) and defined(i386)}
|
|
{$error Cross-compiling from non-i386 to i386 is not yet supported at this time }
|
|
{$endif}
|