fpc/compiler
nickysn 0fb92b803b * set the MZ exe section limit to 640k
git-svn-id: trunk@31348 -
2015-08-20 15:01:39 +00:00
..
aarch64 * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
arm Added STM32F7xx controller units and types. 2015-07-31 22:21:16 +00:00
avr Fix is_calljmp to include call instructions. This was breaking some optimizations previously. 2015-07-30 06:29:21 +00:00
generic o fixes handling of iso i/o parameters/program parameters: 2015-05-01 20:58:31 +00:00
html
i386 * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
i8086 * support far classrefdef targets on i8086 in thlcgcpu.a_loadaddr_ref_reg. This 2015-08-15 17:24:49 +00:00
jvm * guarantee the order of parameter pushes again after r31201 on platforms 2015-08-16 12:47:09 +00:00
llvm * generate LLVM typedefs for file-typed data 2015-08-18 16:10:29 +00:00
m68k * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
mips * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
msg * correctly write an error if one tries to implement a method introduced in a generic in a specialization of the generic, resolves issue #23169 2015-07-28 21:16:47 +00:00
powerpc * changed getarraydef() into a tarraydef.getreusable() class method 2015-06-23 21:23:18 +00:00
powerpc64 * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
ppcgen * correctly handle LOC_SUBSETREG,LOC_CSUBSETREG,LOC_SUBSETREF,LOC_CSUBSETREF in second_int_to_bool, resolves issue #28007 2015-05-02 13:52:50 +00:00
sparc * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
systems * specify the proper segment ordering in the link script of the i8086-msdos 2015-08-18 14:44:00 +00:00
utils Use AnsiString and sysutils GetEnvironmentVariable function to avoid truncation of PATH to 255 chars 2015-07-11 13:59:06 +00:00
x86 - reverted workaround from r15939 that hasn't been necessary since FPC 2.6.0, 2015-07-06 08:05:37 +00:00
x86_64 * remove implicit typecast to extended automatically inserted for trunc/round 2015-07-03 21:01:18 +00:00
aasmbase.pas + tasmlabel.createstatic() constructor for creating static data labels 2015-03-27 21:25:40 +00:00
aasmcnst.pas * give an internalerror if a typed const builder is finalised while there 2015-07-30 16:58:14 +00:00
aasmdata.pas + tasmlabel.createstatic() constructor for creating static data labels 2015-03-27 21:25:40 +00:00
aasmsym.pas
aasmtai.pas Changed type of size argument from aint to asizeint. This previously broke things on 8bit targets. 2015-08-13 01:57:09 +00:00
aggas.pas + DEBUG_AGGAS: tais like tai_marker are written as comments 2015-04-26 17:19:30 +00:00
aopt.pas - removed long deprecated/buggy assembler cse optimiser for i386 2015-05-09 17:25:07 +00:00
aoptbase.pas * simplified RegInInstruction() and fixed range errors 2013-11-06 10:46:22 +00:00
aoptcs.pas
aoptda.pas
aoptobj.pas Added some peephole optimizations, and fixed generic unconditional jump optimizations, for AVR. 2015-06-13 12:25:11 +00:00
assemble.pas * refactored "ar" object writer creation in the internal assembler to allow 2015-04-19 16:35:16 +00:00
blockutl.pas + support for calling a method via a block: we capture the method as a 2014-07-18 09:15:35 +00:00
browcol.pas Avoid infinite recursion on generic classes for IDE browser 2013-11-12 16:39:20 +00:00
catch.pas
ccharset.pas
cclasses.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
cfidwarf.pas
cfileutl.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
cg64f32.pas + support 8 locations in splitparaloc64 2015-04-10 20:32:22 +00:00
cgbase.pas * due to avr's harvard architecture, loads of code labels need to use the gs(...) macro 2015-04-12 20:29:13 +00:00
cghlcpu.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
cgobj.pas * handle the loading of VMT entries at the node level, so it's done in a 2015-05-31 16:50:47 +00:00
cgutils.pas Avoid line longer than 255 characters, to be able to edit inside FP IDE 2015-03-10 07:56:18 +00:00
cmsgs.pas
comphook.pas + don't abuse status.currentsourcepath to pass on PPU names if the source is unavailable, causes side effects with other frontends (like the IDE). Improved solution for Mantis #27588 2015-03-29 19:05:19 +00:00
compiler.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
compinnr.inc - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
comprsrc.pas + ELF/ppc64le resource support 2015-03-14 18:36:32 +00:00
constexp.pas * make use of the noreturn directive for internalerror 2013-11-10 09:01:03 +00:00
COPYING.txt
cpid.pas
crefs.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
cresstr.pas * changed emit_ansistring_const() and emit_unicodestring_const() into 2015-03-27 21:25:53 +00:00
cstreams.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
cutils.pas
cwindirs.pp
dbgbase.pas * don't generate debug info for class fields in generic types 2014-06-10 19:05:10 +00:00
dbgdwarf.pas * ensure that the dwarf file table contains an entry if the current unit 2015-08-17 08:47:38 +00:00
dbgstabs.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
dbgstabx.pas Do not consider ansi/wide/unicode strings as taggable for stabs 2014-04-22 22:32:14 +00:00
defcmp.pas * set the type of the hidden $vmt parameter to the correct classrefdef and 2015-05-31 16:51:02 +00:00
defutil.pas - removed symcpu dependencies 2015-06-13 22:47:59 +00:00
dirparse.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
elfbase.pas
export.pas
expunix.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
finput.pas * return false, if tdosinputfile.fileopen cannot open a file for reading 2015-02-22 15:52:54 +00:00
fmodule.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
fpccrc.pas
fpcdefs.inc + provide also 8 and 16 bit div/mod helper 2015-07-05 20:16:50 +00:00
fppu.pas + commented directive for easier enabling 2015-02-23 22:11:26 +00:00
gendef.pas
globals.pas * enable -godwarfsets by default 2015-07-07 17:12:31 +00:00
globstat.pas
globtype.pas - removed long deprecated/buggy assembler cse optimiser for i386 2015-05-09 17:25:07 +00:00
hlcg2ll.pas * synchronised with trunk till r30240 2015-03-15 19:44:58 +00:00
hlcgobj.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
htypechk.pas * never keep a value in a register for llvm if it's typecasted on the 2015-04-25 15:50:55 +00:00
impdef.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
import.pas
ldscript.pas
link.pas * refactored the internal linker ar object reader object creation to allow using 2015-08-14 13:52:45 +00:00
macho.pas
machoutils.pas
Makefile Set ALLOW_WARNINGSS to 1 for m68k and avr compiler to allow successful fullinstall completion 2015-07-15 15:27:27 +00:00
Makefile.fpc Set ALLOW_WARNINGSS to 1 for m68k and avr compiler to allow successful fullinstall completion 2015-07-15 15:27:27 +00:00
MPWMake
msgidx.inc * correctly write an error if one tries to implement a method introduced in a generic in a specialization of the generic, resolves issue #23169 2015-07-28 21:16:47 +00:00
msgtxt.inc * correctly write an error if one tries to implement a method introduced in a generic in a specialization of the generic, resolves issue #23169 2015-07-28 21:16:47 +00:00
nadd.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
nbas.pas * Improved handling of registers used in assembler blocks. Assembler nodes no longer have lists of used registers attached to them. Instead, each specified register creates an allocation/deallocation pair and an additional tai_regalloc.markused item directly in the asmlist. This way, register lists are no longer limited to integer registers, and parsing no longer depends on paramanager to know which registers are volatile. 2015-02-25 21:53:15 +00:00
ncal.pas * guarantee the order of parameter pushes again after r31201 on platforms 2015-08-16 12:47:09 +00:00
ncgadd.pas * fixed pointer plus/minus integer on llvm (since a_op_* only gets a single 2015-03-05 22:45:32 +00:00
ncgbas.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
ncgcal.pas * guarantee the order of parameter pushes again after r31201 on platforms 2015-08-16 12:47:09 +00:00
ncgcnv.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
ncgcon.pas * converted tcgguidconstnode.pass_generate_code to use the high level typed 2015-07-03 20:04:18 +00:00
ncgflw.pas Changed cast to allow more loop iterations than the native bit-ness of the architecture. 2015-06-13 12:20:12 +00:00
ncghlmat.pas * moved tjvmnotnode implementation to generic ncghlmat unit, and also use it 2014-08-10 19:39:55 +00:00
ncginl.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
ncgld.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
ncgmat.pas + added tasmlist parameter to getintparaloc() (needed for llvm) 2015-04-04 14:29:16 +00:00
ncgmem.pas * fixed the def used to load non-objc loadvmtaddr nodes (for llvm) 2015-06-13 22:48:48 +00:00
ncgnstld.pas
ncgnstmm.pas
ncgobjc.pas
ncgopt.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
ncgrtti.pas * simplified enum lookup table management by using tfplist instead of 2015-08-06 18:34:31 +00:00
ncgset.pas * corrected type passed to a_bit_test_reg_loc_reg() (we force left into 2015-06-13 22:48:26 +00:00
ncgutil.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
ncgvmt.pas * enable the llvm code generator for VMT generation 2015-08-05 21:06:04 +00:00
ncnv.pas * don't look for overloaded operators in case of internally generated 2015-07-03 20:19:48 +00:00
ncon.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
nflw.pas * synchronised with trunk till r30345 2015-03-28 12:28:15 +00:00
ngenutil.pas + added a hook to insert object-global information into the asmlists (will 2015-04-19 21:37:43 +00:00
ngtcon.pas - removed ttai_lowleveltypedconstbuilder.queue_addrn(), as we are always 2015-07-30 16:58:07 +00:00
ninl.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
nld.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
nmat.pas + provide also 8 and 16 bit div/mod helper 2015-07-05 20:16:50 +00:00
nmem.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
nobj.pas Fix for Mantis #28442. Do not generate the VMT record definition for generic classes. It isn't used anyway. 2015-08-07 15:02:55 +00:00
nobjc.pas
node.pas + nf_addr_taken: it marks nodes which address is taken 2014-02-07 20:40:42 +00:00
nopt.pas
nset.pas * fixed "case <string> of" with multiple labels for a single statement after 2015-07-03 20:04:25 +00:00
nstate.pas
nutils.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
objcdef.pas + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +00:00
objcgutl.pas * AArch64 also uses the non-fragile Objective-C ABI 2015-02-23 22:51:31 +00:00
objcutil.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
ogbase.pas - removed semicolon after 'begin' 2015-08-11 14:30:32 +00:00
ogcoff.pas * refactored "ar" object writer creation in the internal assembler to allow 2015-04-19 16:35:16 +00:00
ogelf.pas * refactored "ar" object writer creation in the internal assembler to allow 2015-04-19 16:35:16 +00:00
oglx.pas * refactored the internal linker ar object reader object creation to allow using 2015-08-14 13:52:45 +00:00
ogmacho.pas * refactored "ar" object writer creation in the internal assembler to allow 2015-04-19 16:35:16 +00:00
ogmap.pas
ognlm.pas * refactored "ar" object writer creation in the internal assembler to allow 2015-04-19 16:35:16 +00:00
ogomf.pas * set the MZ exe section limit to 640k 2015-08-20 15:01:39 +00:00
omfbase.pas + finished the internal omf library writer (implementing writing of the library 2015-04-21 23:31:02 +00:00
optbase.pas * run CheckAndWarn to get proper locations for warnings about uninitialized variables 2013-12-01 17:01:51 +00:00
optconstprop.pas * propagate constants into the header of a for loop 2013-12-31 13:16:09 +00:00
optcse.pas * don't perform CSE on typeconversion nodes inserted for absolute 2015-07-04 22:28:31 +00:00
optdead.pas * factored out the check for whether we have to generate dotted function 2015-03-14 18:35:25 +00:00
optdeadstore.pas * be more careful when removing dead stores 2013-12-28 20:19:42 +00:00
optdfa.pas * handle raise nodes in dfa on jvm, resolves #27416 2015-02-07 18:11:02 +00:00
options.pas * don't generate DWARF cfi when targeting LLVM, it will do that itself 2015-08-18 16:09:44 +00:00
optloop.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
opttail.pas + support overriding tdef/tsym methods with target-specific functionality: 2014-03-29 22:31:55 +00:00
optutils.pas * set successor node for load nodes as well, they can be generated when inlining 2013-12-28 20:19:38 +00:00
optvirt.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
owar.pas * refactored the internal linker ar object reader object creation to allow using 2015-08-14 13:52:45 +00:00
owbase.pas * refactored the internal linker ar object reader object creation to allow using 2015-08-14 13:52:45 +00:00
owomflib.pas * fixed reading of OMF library dictionary 2015-08-17 13:03:57 +00:00
parabase.pas * reworked and fixed llvm procdef handling (except for variadic C functions): 2014-03-06 21:42:00 +00:00
paramgr.pas * changed getarraydef() into a tarraydef.getreusable() class method 2015-06-23 21:23:18 +00:00
parser.pas AROS/x86_64: enable syscalls code in the parser, fix EAX->RAX reference base while calculating syscall offset 2015-06-28 23:04:51 +00:00
pass_1.pas * indention and new line fixes 2013-11-06 21:10:28 +00:00
pass_2.pas
pbase.pas Rework the way how "specialize" is handled. Instead of initializing the specialization of a full type declaration (including unit name and parent types) it is now considered part of the specialized type itself. This means that for example the following code: 2015-02-20 16:23:40 +00:00
pdecl.pas * changed temporary type_e_anonymous_function_unsupported message into an 2015-04-19 14:31:35 +00:00
pdecobj.pas * do not generate a vmt record for generics, they are only needed for specializations 2015-08-02 19:51:08 +00:00
pdecsub.pas * correctly write an error if one tries to implement a method introduced in a generic in a specialization of the generic, resolves issue #23169 2015-07-28 21:16:47 +00:00
pdecvar.pas * store the to be used recordalignmin and maxcrecordalign settings inside 2015-03-27 21:25:56 +00:00
pexports.pas
pexpr.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
pgenutil.pas Fix for Mantis #27750. 2015-04-24 14:51:22 +00:00
pinline.pas - reverted partial commit of merge 2015-01-21 23:24:37 +00:00
pmodules.pas o fixes handling of iso i/o parameters/program parameters: 2015-05-01 20:58:31 +00:00
pp.lpi + support for http://en.wikipedia.org/wiki/Blocks_(C_language_extension) 2014-07-18 09:15:22 +00:00
pp.pas
pparautl.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
ppc68k.lpi
ppc8086.lpi - removed agjasmin.pas from the ppc8086.lpi (plus other changes lazarus insists on doing) 2015-05-15 22:27:35 +00:00
ppcaarch64.lpi
ppcarm.lpi Rebase to trunk revision 2015-02-15 16:08:18 +00:00
ppcavr.lpi
ppcjvm.lpi
ppcmips.lpi
ppcmipsel.lpi
ppcppc64.lpi
ppcppc.lpi
ppcsparc.lpi
ppheap.pas
ppu.pas * fixed truncation errors for a*int/word in ppudump for architectures 2015-06-13 22:47:56 +00:00
ppx86_64.lpi
procinfo.pas * reduce dependencies of the procinfo unit 2015-05-16 21:49:42 +00:00
pstatmnt.pas * do not call typecheckpass unncessarily in generic definitions, it might cause only errors, resolves #28058 2015-08-02 20:29:30 +00:00
psub.pas * fixed llvm handling of routines that are normally declared in the 2015-08-05 21:05:55 +00:00
psystem.pas * store the to be used recordalignmin and maxcrecordalign settings inside 2015-03-27 21:25:56 +00:00
ptconst.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
ptype.pas * changed getpointerdef() into a tpointerdef.getreusable() class method 2015-06-22 08:17:49 +00:00
raatt.pas * merged ait_set and ait_thumb_set into a single tai class 2015-03-14 18:35:28 +00:00
rabase.pas
rasm.pas * Moved local label infrastructure into tasmreader, reduces number of global vars. Functionality is not changed. 2014-04-05 09:43:13 +00:00
rautils.pas * synchronized with privatetrunk till r30095 2015-03-05 20:32:15 +00:00
README.txt
regvars.pas
rescmn.pas
rgbase.pas
rgobj.pas * check registers of ait_regalloc for a valid color when translating and compiling with -dextdebug 2015-04-05 19:06:06 +00:00
scandir.pas + added error message in case the HUGEPOINTERNORMALIZATION directive is used 2014-07-04 17:16:58 +00:00
scanner.pas + support for {$I %CURRENTROUTINE%} 2015-05-16 22:22:26 +00:00
script.pas * fixes several issues which cause warnings by the dfa code when using it to detect uninitialized variables 2013-12-01 17:02:08 +00:00
switches.pas + added the $F switch to the turbo and macSwitchTable, as that takes precedence 2014-04-13 15:14:43 +00:00
symbase.pas * prevent new definitions being added to a global unit symtable after compilation of the implementation part started 2015-02-23 22:10:46 +00:00
symconst.pas * converted ncgrtti to the high level typed constant builder 2015-07-30 16:58:17 +00:00
symcreat.pas * fixed llvm handling of routines that are normally declared in the 2015-08-05 21:05:55 +00:00
symdef.pas + support for specifying the name of fields added to anonymous record 2015-07-30 16:57:58 +00:00
symnot.pas
symsym.pas Added most AVR controllers. 2015-07-29 21:01:21 +00:00
symtable.pas * factored out getting a previously created internal type by name 2015-07-30 16:57:52 +00:00
symtype.pas * change rtti_mangledname resultdef into TSymStr 2015-07-30 16:57:45 +00:00
symutil.pas
systems.inc + Linux/AArch64 compiler support (patch by Edmund Grimley Evans) 2015-05-22 09:25:05 +00:00
systems.pas + Linux/AArch64 compiler support (patch by Edmund Grimley Evans) 2015-05-22 09:25:05 +00:00
tgobj.pas * suppress (harmless) range error 2015-05-31 16:50:50 +00:00
tokens.pas * synchronised with trunk till r29513 2015-01-21 23:28:34 +00:00
verbose.pas + don't abuse status.currentsourcepath to pass on PPU names if the source is unavailable, causes side effects with other frontends (like the IDE). Improved solution for Mantis #27588 2015-03-29 19:05:19 +00:00
version.pas + initial AArch64 support in systemh.inc, options.pas, version.pas and 2015-02-23 22:52:04 +00:00
widestr.pas * converted widestr.charlength() to use system.Utf8CodePointLen() 2015-03-01 17:12:27 +00:00
wpo.pas
wpobase.pas * changed tcallnode.fforcedprocname from shortstring into tsymstr, 2014-05-10 12:47:25 +00:00
wpoinfo.pas * call "message" rather than "cgmessage" when throwing fatal errors, because 2014-07-18 09:09:21 +00:00

This directory contains the sources of the Free Pascal Compiler

If you want to compile/modify the compiler, please read first the
programmers manual.

To recompile the compiler, you can use the batch files :
 + mppc386.bat    if you want to build a cross compiler from i386 to m68k
 + mppcsparc      if you want to build a cross compiler from i386 to SPARC
 
 or
Use the make utility as following
  
      make OS_TARGET="compiler OS target" \
      CPU_TARGET="compiler CPU target" \
      FPCCPUOPT="Optimization level" \
      PP="compiler used to compile FPC" \
      COMPILER_OPTIONS="Options passed to compiler" \
      
      
If an option is omitted, then target CPU/OS will be same as current CPU/OS
 
Possibles targets are : linux go32v2 win32 os2 freebsd beos netbsd amiga haiku
atari sunos qnx netware openbsd wdosx palmos macos macosx emx
   
Possible compiler switches (* marks a currently required switch):
  -----------------------------------------------------------------
  GDB*                support of the GNU Debugger
  I386                generate a compiler for the Intel i386+
  x86_64              generate a compiler for the AMD x86-64 architecture
  M68K                generate a compiler for the M68000
  SPARC               generate a compiler for SPARC
  POWERPC             generate a compiler for the PowerPC
  VIS                 generate a compile for the VIS
  DEBUG               version with debug code is generated
  EXTDEBUG            some extra debug code is executed
  SUPPORT_MMX         only i386: releases the compiler switch
                      MMX which allows the compiler to generate
                      MMX instructions
  EXTERN_MSG          Don't compile the msgfiles in the compiler, always
                      use external messagefiles, default for TP
  NOAG386INT          no Intel Assembler output
  NOAG386NSM          no NASM output
  NOAG386BIN          leaves out the binary writer, default for TP
  NORA386DIR          No direct i386 assembler reader
  TEST_GENERIC        Test Generic version of code generator
                      (uses generic RTL calls)
  -----------------------------------------------------------------
  cpuflags            The target processor has status flags (on by default)
  cpufpemu            The target compiler will also support emitting software
                       floating point operations
  cpu64bitaddr        The targets use a 64-bit address space (pointers and
                       the default integer type are 64 bit)
  cpu64bitalu         The target cpu has 64-bit registers available (unless
                       cpu64bitaddr is also defined, pointers and default
                       integer type remain 32 bit, but the cpu can perform
                       64 bit calculations directly without needing helpers)
  -----------------------------------------------------------------

  Required switches for a i386 compiler be compiled by Free Pascal Compiler:
  GDB;I386

to build a compiler to SPARC target using a Win32/i386 you just use :
      make CPU_TARGET=SPARC