SConscript (3942:edc24787baf6) SConscript (3960:1dca397b2bab)
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 48 unchanged lines hidden (view full) ---

57 base/inifile.cc
58 base/intmath.cc
59 base/match.cc
60 base/misc.cc
61 base/output.cc
62 base/pollevent.cc
63 base/range.cc
64 base/random.cc
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2005 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 48 unchanged lines hidden (view full) ---

57 base/inifile.cc
58 base/intmath.cc
59 base/match.cc
60 base/misc.cc
61 base/output.cc
62 base/pollevent.cc
63 base/range.cc
64 base/random.cc
65 base/remote_gdb.cc
65 base/sat_counter.cc
66 base/socket.cc
67 base/statistics.cc
68 base/str.cc
69 base/time.cc
70 base/trace.cc
71 base/traceflags.cc
72 base/userinfo.cc

--- 36 unchanged lines hidden (view full) ---

109 mem/cache/coherence/uni_coherence.cc
110 mem/cache/miss/blocking_buffer.cc
111 mem/cache/miss/miss_buffer.cc
112 mem/cache/miss/miss_queue.cc
113 mem/cache/miss/mshr.cc
114 mem/cache/miss/mshr_queue.cc
115 mem/cache/prefetch/base_prefetcher.cc
116 mem/cache/prefetch/ghb_prefetcher.cc
66 base/sat_counter.cc
67 base/socket.cc
68 base/statistics.cc
69 base/str.cc
70 base/time.cc
71 base/trace.cc
72 base/traceflags.cc
73 base/userinfo.cc

--- 36 unchanged lines hidden (view full) ---

110 mem/cache/coherence/uni_coherence.cc
111 mem/cache/miss/blocking_buffer.cc
112 mem/cache/miss/miss_buffer.cc
113 mem/cache/miss/miss_queue.cc
114 mem/cache/miss/mshr.cc
115 mem/cache/miss/mshr_queue.cc
116 mem/cache/prefetch/base_prefetcher.cc
117 mem/cache/prefetch/ghb_prefetcher.cc
118 mem/cache/prefetch/prefetcher.cc
117 mem/cache/prefetch/stride_prefetcher.cc
118 mem/cache/prefetch/tagged_prefetcher.cc
119 mem/cache/tags/base_tags.cc
119 mem/cache/prefetch/stride_prefetcher.cc
120 mem/cache/prefetch/tagged_prefetcher.cc
121 mem/cache/tags/base_tags.cc
122 mem/cache/tags/cache_tags.cc
120 mem/cache/tags/fa_lru.cc
121 mem/cache/tags/iic.cc
122 mem/cache/tags/lru.cc
123 mem/cache/tags/repl/gen.cc
124 mem/cache/tags/repl/repl.cc
125 mem/cache/tags/split.cc
126 mem/cache/tags/split_lifo.cc
127 mem/cache/tags/split_lru.cc
128
129 mem/cache/cache_builder.cc
130
123 mem/cache/tags/fa_lru.cc
124 mem/cache/tags/iic.cc
125 mem/cache/tags/lru.cc
126 mem/cache/tags/repl/gen.cc
127 mem/cache/tags/repl/repl.cc
128 mem/cache/tags/split.cc
129 mem/cache/tags/split_lifo.cc
130 mem/cache/tags/split_lru.cc
131
132 mem/cache/cache_builder.cc
133
131 python/swig/init.cc
132 python/swig/debug_wrap.cc
133 python/swig/main_wrap.cc
134 python/swig/debug_wrap.cc
135 python/swig/main_wrap.cc
134 python/swig/event_wrap.cc
135 python/swig/pyevent.cc
136
137 sim/builder.cc
138 sim/debug.cc
139 sim/eventq.cc
140 sim/faults.cc
141 sim/main.cc
142 sim/param.cc
143 sim/root.cc

--- 23 unchanged lines hidden (view full) ---

167 base/mysql.cc
168 base/stats/mysql.cc
169 ''')
170
171# Full-system sources
172full_system_sources = Split('''
173 base/crc.cc
174 base/inet.cc
136
137 sim/builder.cc
138 sim/debug.cc
139 sim/eventq.cc
140 sim/faults.cc
141 sim/main.cc
142 sim/param.cc
143 sim/root.cc

--- 23 unchanged lines hidden (view full) ---

167 base/mysql.cc
168 base/stats/mysql.cc
169 ''')
170
171# Full-system sources
172full_system_sources = Split('''
173 base/crc.cc
174 base/inet.cc
175 base/remote_gdb.cc
176
177 cpu/intr_control.cc
178 cpu/profile.cc
179
180 dev/uart.cc
181 dev/uart8250.cc
182
183 mem/vport.cc

--- 122 unchanged lines hidden (view full) ---

306 stripped_bin = bin + '.stripped'
307 newEnv.Command(stripped_bin, bin, 'strip $SOURCE -o $TARGET')
308 bin = stripped_bin
309 targets = newEnv.Concat(exe, [bin, 'python/m5py.zip'])
310 newEnv.M5Binary = targets[0]
311 envList.append(newEnv)
312
313# Debug binary
175
176 cpu/intr_control.cc
177 cpu/profile.cc
178
179 dev/uart.cc
180 dev/uart8250.cc
181
182 mem/vport.cc

--- 122 unchanged lines hidden (view full) ---

305 stripped_bin = bin + '.stripped'
306 newEnv.Command(stripped_bin, bin, 'strip $SOURCE -o $TARGET')
307 bin = stripped_bin
308 targets = newEnv.Concat(exe, [bin, 'python/m5py.zip'])
309 newEnv.M5Binary = targets[0]
310 envList.append(newEnv)
311
312# Debug binary
314ccflags = {}
315if env['GCC']:
316 if sys.platform == 'sunos5':
317 ccflags['debug'] = '-gstabs+'
318 else:
319 ccflags['debug'] = '-ggdb3'
320 ccflags['opt'] = '-g -O3'
321 ccflags['fast'] = '-O3'
322 ccflags['prof'] = '-O3 -g -pg'
323elif env['SUNCC']:
324 ccflags['debug'] = '-g0'
325 ccflags['opt'] = '-g -O'
326 ccflags['fast'] = '-fast'
327 ccflags['prof'] = '-fast -g -pg'
328elif env['ICC']:
329 ccflags['debug'] = '-g -O0'
330 ccflags['opt'] = '-g -O'
331 ccflags['fast'] = '-fast'
332 ccflags['prof'] = '-fast -g -pg'
313# Solaris seems to have some issue with DWARF2 debugging information, it's ok
314# with stabs though
315if sys.platform == 'sunos5':
316 debug_flag = '-gstabs+'
333else:
317else:
334 print 'Unknown compiler, please fix compiler options'
335 Exit(1)
318 debug_flag = '-ggdb3'
336
337makeEnv('debug', '.do',
319
320makeEnv('debug', '.do',
338 CCFLAGS = Split(ccflags['debug']),
321 CCFLAGS = Split('%s -O0' % debug_flag),
339 CPPDEFINES = ['DEBUG', 'TRACING_ON=1'])
340
341# Optimized binary
342makeEnv('opt', '.o',
322 CPPDEFINES = ['DEBUG', 'TRACING_ON=1'])
323
324# Optimized binary
325makeEnv('opt', '.o',
343 CCFLAGS = Split(ccflags['opt']),
326 CCFLAGS = Split('-g -O3'),
344 CPPDEFINES = ['TRACING_ON=1'])
345
346# "Fast" binary
347makeEnv('fast', '.fo', strip = True,
327 CPPDEFINES = ['TRACING_ON=1'])
328
329# "Fast" binary
330makeEnv('fast', '.fo', strip = True,
348 CCFLAGS = Split(ccflags['fast']),
331 CCFLAGS = Split('-O3'),
349 CPPDEFINES = ['NDEBUG', 'TRACING_ON=0'])
350
351# Profiled binary
352makeEnv('prof', '.po',
332 CPPDEFINES = ['NDEBUG', 'TRACING_ON=0'])
333
334# Profiled binary
335makeEnv('prof', '.po',
353 CCFLAGS = Split(ccflags['prof']),
336 CCFLAGS = Split('-O3 -g -pg'),
354 CPPDEFINES = ['NDEBUG', 'TRACING_ON=0'],
355 LINKFLAGS = '-pg')
356
357Return('envList')
337 CPPDEFINES = ['NDEBUG', 'TRACING_ON=0'],
338 LINKFLAGS = '-pg')
339
340Return('envList')