source: trunk/source/lisp-kernel/linuxx8632/Makefile @ 15606

Last change on this file since 15606 was 15606, checked in by gb, 8 years ago

This is a work-in-progress; there will need to be new binaries
and similar changes for other architectures.

compiler/nx2.lisp: do late constant-folding on comparisons. (This depends

on being able to use operators for T and NIL in the backend; since backends
don't necessarily support that, check first.)

compiler/optimizers.lisp: bind temporaries for 3-arg numeric comparisons.

compiler/vinsn.lisp: do dead-code elimination at the vinsn level. Because

of the way that "aligned labels" work on x86, introduce an :align vinsn
attribute. Add/change some utilities for finding next/previous vinsn, etc.

compiler/X86/x862.lisp: Handle operators for T/NIL. Peephole optimize

things like (if (let ...)) where the LET returns a constant value and
we need to discard some words from the stack.

compiler/X86/X8632/x8632-arch.lisp:
compiler/X86/X8664/x8664-arch.lisp: Bump image version

compiler/X86/X8632/x8632-vinsns.lisp:
compiler/X86/X8664/x8664-vinsns.lisp: EMIT-ALIGNED-LABEL has :align

attribute

level-0/l0-hash.lisp: Don't assume that GC maintains weak-deletions; do

assume that it maintains count/deleted-count, so lock-based code adjusts
those slots atomically.

level-0/l0-misc.lisp: We don't want to use futexes (at least not instead

of spinlocks.)

level-0/X86/x86-misc.lisp: %ATOMIC-INCF-NODE needs to pause while spinning.

(Note that a locked ADD may be faster on x86, but wouldn't return a
meaningful value and some callers expect it to.)

level-1/l1-clos-boot.lisp: no more DESTRUCTURE-STATE.
level-1/l1-files.lisp: indentation change
level-1/l1-utils.lisp: no more DESTRUCTURE-STATE.
level-1/linux-files.lisp: UNSETENV

lib/hash.lisp: no need to %NORMALIZE-HASH-TABLE-COUNT.
lib/macros.lisp: no more DESTRUCTURE-STATE.

library/lispequ.lisp: no more DESTRUCTURE-STATE.

lisp-kernel/gc-common.c: decrement count when removing weak key from

hash vector; increment deleted-count if not lock-free.

lisp-kernel/x86-constants32.h:
lisp-kernel/x86-constants64.h: bump current, max image versions

lisp-kernel/linuxx8632/Makefile:
lisp-kernel/linuxx8664/Makefile: don't define USE_FUTEX.

File size: 2.8 KB
Line 
1#
2#   Copyright (C) 2008 Clozure Associates and contributors
3#   This file is part of Clozure CL. 
4#
5#   Clozure CL is licensed under the terms of the Lisp Lesser GNU Public
6#   License , known as the LLGPL and distributed with Clozure CL as the
7#   file "LICENSE".  The LLGPL consists of a preamble and the LGPL,
8#   which is distributed with Clozure CL as the file "LGPL".  Where these
9#   conflict, the preamble takes precedence. 
10#
11#   Clozure CL is referenced in the preamble as the "LIBRARY."
12#
13#   The LLGPL is also available online at
14#   http://opensource.franz.com/preamble.html
15
16SVN_REVISION := "$(shell svnversion || echo unknown)"
17
18VPATH = ../
19RM = /bin/rm
20AS = as
21M4 = m4
22ASFLAGS = --32
23M4FLAGS = -DLINUX -DX86 -DX8632 -DHAVE_TLS
24CDEFINES = -DLINUX -D_REENTRANT -DX86 -DX8632 -D_GNU_SOURCE -DHAVE_TLS -DSVN_REVISION=$(SVN_REVISION) # -DGC_INTEGRITY_CHECKING -DDISABLE_EGC
25CDEBUG = -g
26COPT = -O2
27# Once in a while, -Wformat says something useful.  The odds are against that,
28# however.
29WFORMAT = -Wno-format
30PLATFORM_H = platform-linuxx8632.h
31
32# If the linker supports a "--hash-style=" option, use traditional
33# SysV hash tables.  (If it doesn't support that option, assume
34# that traditional hash tables will be used by default.)
35ld_has_hash_style = $(shell $(LD) --help | grep "hash-style=")
36ifeq ($(ld_has_hash_style),)
37HASH_STYLE=
38else
39HASH_STYLE="-Wl,--hash-style=sysv"
40endif
41
42
43.s.o:
44        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
45.c.o:
46        $(CC) -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT) $(WFORMAT) -m32 -o $@
47
48SPOBJ = pad.o x86-spjump32.o x86-spentry32.o x86-subprims32.o
49ASMOBJ = x86-asmutils32.o imports.o
50
51COBJ  = pmcl-kernel.o gc-common.o x86-gc.o bits.o  x86-exceptions.o \
52        x86-utils.o \
53        image.o thread_manager.o lisp-debug.o memory.o unix-calls.o
54
55DEBUGOBJ = lispdcmd.o plprint.o plsym.o xlbt.o x86_print.o
56KERNELOBJ= $(COBJ) x86-asmutils32.o  imports.o
57
58SPINC = lisp.s m4macros.m4 x86-constants.s x86-macros.s errors.s x86-uuo.s \
59        x86-constants32.s lisp_globals.s
60
61CHEADERS = area.h bits.h x86-constants.h lisp-errors.h gc.h lisp.h \
62        lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
63        threads.h x86-constants32.h x86-exceptions.h lisptypes.h \
64        x86-utils.h \
65        $(PLATFORM_H) constants.h os-linux.h
66
67
68KSPOBJ = $(SPOBJ)
69all:    ../../lx86cl
70
71
72OSLIBS = -ldl -lm -lpthread -lrt
73LINK_SCRIPT = # ./elf_x86_32.x
74USE_LINK_SCRIPT = # -T $(LINK_SCRIPT)
75
76../../lx86cl:   $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) Makefile  $(LINK_SCRIPT)
77        $(CC)  -m32 $(CDEBUG)  -Wl,--export-dynamic $(HASH_STYLE) -o $@ $(USE_LINK_SCRIPT) $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) -Wl,--no-as-needed $(OSLIBS)
78
79
80$(SPOBJ): $(SPINC)
81$(ASMOBJ): $(SPINC)
82$(COBJ): $(CHEADERS)
83$(DEBUGOBJ): $(CHEADERS) lispdcmd.h
84
85
86cclean:
87        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../lx86cl
88
89clean:  cclean
90        $(RM) -f $(SPOBJ)
91
92strip:  ../../lx86cl
93        strip -g ../../lx86cl
Note: See TracBrowser for help on using the repository browser.