-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
2964 lines (2700 loc) · 131 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!--
~ This file is part of the Jikes RVM project (http://jikesrvm.org).
~
~ This file is licensed to You under the Eclipse Public License (EPL);
~ You may not use this file except in compliance with the License. You
~ may obtain a copy of the License at
~
~ http://www.opensource.org/licenses/eclipse-1.0.php
~
~ See the COPYRIGHT.txt file distributed with this work for information
~ regarding copyright ownership.
-->
<project name="JikesRVM" default="main" basedir=".">
<property name="rvm.version" value="3.1.4+git"/>
<!-- <property name="git.revision" value="XXX"/> -->
<property name="jikesrvm.dir" location="${basedir}"/>
<import file="build/base.xml"/>
<import file="build/tasks.xml"/>
<import file="build/checkstyle-plugins.xml"/>
<property name="helpers.dir" location="${build.dir}/build-helpers"/>
<property name="helpers.classes" location="${helpers.dir}/classes"/>
<property name="helpers.java.version" value="1.6"/>
<available property="config.file" value="${jikesrvm.dir}/build/configs/${config.name}.properties" file="${jikesrvm.dir}/build/configs/${config.name}.properties"/>
<available property="config.file" value="${config.third-party-build-configs}/${config.name}.properties" file="${config.third-party-build-configs}/${config.name}.properties"/>
<!-- configuration data -->
<property file="${config.file}"/>
<property file="${target.file}"/>
<property name="rust.build" value="false"/>
<property name="rust.binding_side_ref_proc" value="false"/>
<!-- default configuration values. May have already been set by above tasks -->
<property file="${jikesrvm.dir}/build/configs/config.properties.defaults"/>
<property name="debugLevel" value="lines,source"/>
<setBuildName property="build.name" config="${config.name}"/>
<!-- location of resources -->
<property name="primordials.dir" location="build/primordials"/>
<property name="main.java" location="rvm/src"/>
<property name="test.java" location="rvm/test-src/"/>
<property name="mmtk.java" location="MMTk/src"/>
<property name="mmtk-harness.java" location="MMTk/harness/src"/>
<property name="mmtk-harness-vmmagic.java" location="MMTk/harness/vmmagic"/>
<property name="mmtk-vm-rvm.java" location="MMTk/ext/vm/jikesrvm"/>
<property name="mmtk-vm-harness.java" location="MMTk/ext/vm/harness"/>
<condition property="external.java" value="${config.external_source}" else="">
<isset property="config.external_source"/>
</condition>
<condition property="mmtk.java" value="">
<equals arg1="${rust.build}" arg2="true"/>
</condition>
<condition property="mmtk-harness.java" value="">
<equals arg1="${rust.build}" arg2="true"/>
</condition>
<condition property="mmtk-harness-vmmagic.java" value="">
<equals arg1="${rust.build}" arg2="true"/>
</condition>
<condition property="mmtk-vm-rvm.java" value="">
<equals arg1="${rust.build}" arg2="true"/>
</condition>
<condition property="mmtk-vm-harness.java" value="">
<equals arg1="${rust.build}" arg2="true"/>
</condition>
<property name="vmmagic-stub.java" location="common/vmmagic/src"/>
<property name="options.java" location="common/options/src"/>
<property name="tuningforklib.java" location="external/tuningforklib/src"/>
<property name="vmmagic.java" location="tools/bootImageWriter/vmmagic/src"/>
<!-- Location of .dat files for options -->
<property name="options.dir" location="${basedir}/rvm/src-generated/options"/>
<!-- Location of files for SysCalls. These are subject to annotation processing -->
<property name="syscall.dir" location="${main.java}/org/jikesrvm/runtime/"/>
<!-- Bootloader directory -->
<property name="bl.dir" location="${basedir}/tools/bootloader"/>
<!-- Directories for IR and BURS (used in gen-opt-ir and gen-opt-ir-uptodate-check targets) -->
<property name="build.ir.dir" location="${basedir}/rvm/src-generated/opt-ir"/>
<property name="build.burs.dir" location="${basedir}/rvm/src-generated/opt-burs"/>
<!-- Set the properties for intermediate directory -->
<property name="build.dir" location="target"/>
<property name="build.base" location="${build.dir}/${build.name}"/>
<property name="build.profiles" location="${build.dir}/profiles"/>
<property name="build.vmmagic-stub.classes" location="${build.dir}/vmmagic-stub/classes"/>
<property name="build.options.classes" location="${build.dir}/options/classes"/>
<property name="build.mmtk.jar" location="${build.dir}/mmtk/mmtk.jar"/>
<property name="build.mmtk-harness.jar" location="${build.dir}/mmtk/mmtk-harness.jar"/>
<property name="build.native" location="${build.base}/c"/>
<property name="build.objs" location="${build.base}/objs"/>
<property name="build.classes" location="${build.base}/classes"/>
<property name="build.test-classes" location="${build.base}/test-classes"/>
<property name="build.rt.jar" location="${build.base}/rvmrt.jar"/>
<property name="build.vm.jar" location="${build.base}/jksvm.jar"/>
<property name="build.vmmagic.classes" location="${build.base}/vmmagic/classes"/>
<!-- Set the properties for directory of generated artifacts -->
<property name="generated.dir" location="generated"/>
<property name="generated.config.dir" location="${generated.dir}/configurations/${build.name}"/>
<property name="generated.config.java" location="${generated.config.dir}/java"/>
<property name="generated.java" location="${generated.dir}/main/java"/>
<property name="generated.vmmagic.arch.java" location="${generated.dir}/vmmagic/${target.address.size}/java"/>
<property name="generated.asm" location="${generated.dir}/asm/java"/>
<property name="build.asm.classes" location="${generated.dir}/asm/classes"/>
<property name="generated.mmtk-harness-parser.java" location="${generated.dir}/mmtk-harness-parser/java/org/mmtk/harness/lang/parser"/>
<!-- Set the properties for distribution directory -->
<property name="dist.base" location="${dist.dir}/${build.name}"/>
<!-- Set the class library to use -->
<property name="classlib.provider" value="GNU Classpath"/>
<condition property="openjdk.classlib" value="true">
<equals arg1="${classlib.provider}" arg2="OpenJDK"/>
</condition>
<condition property="classpath.classlib" value="true">
<equals arg1="${classlib.provider}" arg2="GNU Classpath"/>
</condition>
<!-- Set the properties for unit test reports -->
<property name="junit.reports.bootstrap" location="${build.base}/test-reports-bootstrap"/>
<property name="junit.reports.rvm" location="${build.base}/test-reports-rvm"/>
<!-- Number of threads to create for the paralllel part of bootimage building -->
<!-- A thread count of 0 maps to a thread count of (Runtime.getAvailableProcessors() + 1) -->
<property name="bootimage.threads" value="1"/>
<!-- Source versions -->
<property name="mmtk.java.version" value="1.6"/>
<property name="harness.java.version" value="1.6"/>
<property name="rvm.java.version" value="1.6"/>
<!-- Default heap layout -->
<property name="target.heap-layout" value="32BIT"/>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Property initialization section of the build * -->
<!-- * * -->
<!-- **************************************************************************** -->
<target name="check-config-properties">
<fail unless="config.name">
config.name property not specified. Please specify property on commandline or in ${jikesrvm.dir}/.ant.properties.
</fail>
<available property="host_config_present" file="${config.file}"/>
<fail unless="host_config_present">
Configuration file ${config.file} not present. Please set config.name to the name of file in
${jikesrvm.dir}/build/configs directory without the .properties suffix.
</fail>
<test-property name="config.mmtk.plan" location="${config.file}"/>
</target>
<target name="check-target-properties">
<available property="target_config_present" file="${target.file}"/>
<fail unless="target_config_present">
Target file ${target.file} not present. Please set target.name to the name of file in
${jikesrvm.dir}/build/targets directory without the .properties suffix.
</fail>
<test-property name="target.arch" location="${target.file}"/>
<test-property name="target.endianness" location="${target.file}"/>
<test-property name="target.os" location="${target.file}"/>
<test-property name="target.bootimage.code.address" location="${target.file}"/>
<test-property name="target.bootimage.data.address" location="${target.file}"/>
<test-property name="target.bootimage.rmap.address" location="${target.file}"/>
<test-property name="target.max-mappable.address" location="${target.file}"/>
<test-property name="target.address.size" location="${target.file}"/>
<test-property name="target.obj-prefix" location="${target.file}"/>
<test-property name="target.obj-ext" location="${target.file}"/>
<test-property name="target.lib-prefix" location="${target.file}"/>
<test-property name="target.lib-ext" location="${target.file}"/>
<test-property name="target.dll-prefix" location="${target.file}"/>
<test-property name="target.dll-ext" location="${target.file}"/>
<test-property name="target.jni-suffix" location="${target.file}"/>
<test-property name="target.debug-suffix" location="${target.file}"/>
</target>
<target name="check-host-properties" depends="check-host-name">
<available property="host_file_present" file="${host.file}"/>
<fail unless="host_file_present">
Host file ${host.file} not present. Please set host.name to the name of file in ${jikesrvm.dir}/build/hosts
directory without the .properties suffix.
</fail>
<test-file name="bison.exe" location="${host.file}"/>
<test-file name="c.exe" location="${host.file}"/>
<test-file name="perl.exe" location="${host.file}"/>
<test-file name="bash.exe" location="${host.file}"/>
<test-property name="c.args" location="${host.file}"/>
<test-property name="shared.flag" location="${host.file}"/>
</target>
<target name="check-classlibrary-properties">
<fail message="Cannot have both OpenJDK and Classpath class libraries">
<condition>
<and>
<isset property="classpath.classlib"/>
<isset property="openjdk.classlib"/>
</and>
</condition>
</fail>
<fail message="No class library specified. Make sure classlib.provider is defined.">
<condition>
<not>
<or>
<equals arg1="${classlib.provider}" arg2="GNU Classpath"/>
<equals arg1="${classlib.provider}" arg2="OpenJDK"/>
</or>
</not>
</condition>
</fail>
<fail message="No class library specified. Make sure classlib.provider is defined.">
<condition>
<not>
<or>
<isset property="classpath.classlib"/>
<isset property="openjdk.classlib"/>
</or>
</not>
</condition>
</fail>
</target>
<target name="check-classpath-properties" depends="check-components-properties,check-classlibrary-properties" if="classpath.classlib">
<propertycopy name="classpath.lib.dir" from="${target.name}.classpath.lib.dir"/>
<test-file name="classpath.lib.dir" location="${components.file}"/>
<property file="${classpath.lib.dir}/constants.properties"/>
<property name="config.portable-native-sync" value="true"/>
<property name="build.extra.rt.jars" value=""/>
<test-file name="c++.exe" location="${host.file}"/>
<test-property name="c++.args" location="${host.file}"/>
</target>
<target name="check-openjdk-properties" depends="check-components-properties,check-classlibrary-properties" if="openjdk.classlib">
<propertycopy name="openjdk.lib.dir" from="${target.name}.openjdk.lib.dir"/>
<test-file name="openjdk.lib.dir" location="${components.file}"/>
<property name="config.portable-native-sync" value="false"/>
<property name="build.extra.rt.jars" value=""/>
<condition property="openjdk.lib.arch" value="amd64" else="unknown">
<and>
<equals arg1="${target.arch}" arg2="ia32"/>
<equals arg1="${target.address.size}" arg2="64"/>
</and>
</condition>
</target>
<target name="check-mmtk-properties" depends="check-host-name">
<property name="config.mmtk" value="default"/>
<property name="mmtk.properties" location="${jikesrvm.dir}/build/mmtk/${config.mmtk}.properties"/>
<property name="default.mmtk.properties" location="${jikesrvm.dir}/build/mmtk/default.properties"/>
<available property="mmtk_properties_present" file="${mmtk.properties}"/>
<fail unless="mmtk_properties_present">
MMTk properties file ${mmtk.properties} not present. Please set mmtk.properties to the name of file in ${jikesrvm.dir}/build/mmtk directory without the .properties suffix.
</fail>
<!-- Load the user-specified properties -->
<loadproperties srcFile="${mmtk.properties}"/>
<!--
Load the default properties - won't overwrite the user-specified
because properties are immutable
-->
<loadproperties srcFile="${default.mmtk.properties}"/>
<!-- Now sanity check the properties we need later -->
<test-property name="mmtk.headerMarkBit" location="${mmtk.properties}"/>
<!-- <echoproperties prefix="mmtk."/> -->
</target>
<target name="include-gcspy-check">
<condition property="include.gcspy-java" value="true">
<equals arg1="${config.include.gcspy}" arg2="true"/>
</condition>
<condition property="include.gcspy-stub" value="true">
<and>
<equals arg1="${config.include.gcspy}" arg2="true"/>
<equals arg1="${config.include.gcspy-stub}" arg2="true"/>
</and>
</condition>
<condition property="include.gcspy" value="true">
<and>
<equals arg1="${config.include.gcspy}" arg2="true"/>
<not>
<equals arg1="${config.include.gcspy-stub}" arg2="true"/>
</not>
</and>
</condition>
<condition property="include.gcspy-client" value="true">
<and>
<equals arg1="${config.include.gcspy}" arg2="true"/>
<equals arg1="${config.include.gcspy-client}" arg2="true"/>
<not>
<equals arg1="${config.include.gcspy-stub}" arg2="true"/>
</not>
</and>
</condition>
</target>
<target name="check-components-properties" depends="include-gcspy-check,prepare-ant-tasks">
<mkdir dir="${components.dir}"/>
<if>
<conditions>
<equals arg1="${classlib.provider}" arg2="GNU Classpath"/>
</conditions>
<sequential>
<ant antfile="build/components/classpath.xml" target="ensure"/>
</sequential>
</if>
<if>
<conditions>
<and>
<equals arg1="${classlib.provider}" arg2="OpenJDK"/>
<not>
<equals arg1="${classlib.useicedtea}" arg2="true"/>
</not>
</and>
</conditions>
<sequential>
<ant antfile="build/components/openjdk.xml" target="ensure"/>
</sequential>
</if>
<if>
<conditions>
<and>
<equals arg1="${classlib.provider}" arg2="OpenJDK"/>
<equals arg1="${classlib.useicedtea}" arg2="true"/>
</and>
</conditions>
<sequential>
<ant antfile="build/components/icedtea.xml" target="ensure"/>
</sequential>
</if>
<if>
<conditions>
<equals arg1="${config.with-profile}" arg2="true"/>
</conditions>
<sequential>
<ant antfile="build/components/dacapo.xml" target="ensure"/>
</sequential>
</if>
<ant antfile="build/components/asm.xml" target="ensure"/>
<if>
<conditions>
<isset property="include.gcspy-client"/>
</conditions>
<sequential>
<ant antfile="build/components/jai.xml" target="ensure"/>
<ant antfile="build/components/gcspy.xml" target="ensure-client"/>
</sequential>
</if>
<if>
<conditions>
<and>
<isset property="include.gcspy"/>
<not>
<isset property="include.gcspy-client"/>
</not>
</and>
</conditions>
<sequential>
<ant antfile="build/components/gcspy.xml" target="ensure">
<property name="gcspy.skip-client" value="true"/>
</ant>
</sequential>
</if>
<ant antfile="build/components/junit.xml" target="ensure"/>
<ant antfile="build/components/hamcrest.xml" target="ensure"/>
<ant antfile="build/components/mockito.xml" target="ensure"/>
<if>
<conditions>
<equals arg1="${require.checkstyle}" arg2="true"/>
</conditions>
<sequential>
<ant antfile="build/components/checkstyle.xml" target="ensure"/>
</sequential>
</if>
<if>
<conditions>
<equals arg1="${require.pmd}" arg2="true"/>
</conditions>
<sequential>
<ant antfile="build/components/pmd.xml" target="ensure"/>
</sequential>
</if>
<property file="${components.file}"/>
</target>
<target name="check-gcspy-client-properties" depends="check-config-properties" if="include.gcspy-client">
<propertycopy name="gcspy.client.dir" from="${target.name}.gcspy.client.dir"/>
<test-file name="gcspy.client.dir" location="${components.file}"/>
</target>
<target name="check-gcspy-properties" depends="check-gcspy-client-properties" if="include.gcspy">
<propertycopy name="gcspy.server.dir" from="${target.name}.gcspy.server.dir"/>
<test-file name="gcspy.server.dir" location="${components.file}"/>
<property file="${gcspy.server.dir}/constants.properties"/>
</target>
<!--
Check to make sure all required properties are specified. This includes properties that define the:
* host environment
* target platform
* configuration settings
* component properties for classpath, gcspy etc.
-->
<target name="check-properties"
depends="check-host-properties,check-config-properties,check-target-properties,check-classlibrary-properties,check-classpath-properties,check-openjdk-properties,check-gcspy-properties,check-mmtk-properties"
description="Check that all required properties are specified.">
<!-- setup properties for start of build. -->
<tstamp prefix="start">
<format property="time" pattern="EEE MMM dd HH:mm:ss z yyyy" timezone="UTC"/>
</tstamp>
<!-- set include.* properties if corresponding feature is in use. Properties used by if/unless guards. -->
<condition property="include.opt" value="true">
<equals arg1="${config.runtime.compiler}" arg2="opt"/>
</condition>
<condition property="include.ppc" value="true">
<equals arg1="${target.arch}" arg2="ppc"/>
</condition>
<condition property="include.32bit" value="true">
<equals arg1="${target.address.size}" arg2="32"/>
</condition>
<condition property="include.aos" value="true">
<and>
<equals arg1="${config.include.aos}" arg2="true"/>
<equals arg1="${config.runtime.compiler}" arg2="opt"/>
</and>
</condition>
</target>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Setup filter properties * -->
<!-- * * -->
<!-- **************************************************************************** -->
<target name="setup-filter-properties" depends="check-properties">
<condition property="arch.filter" value="-DRVM_FOR_POWERPC=1" else="-DRVM_FOR_IA32=1">
<equals arg1="${target.arch}" arg2="ppc"/>
</condition>
<condition property="os.filter" value="-DRVM_FOR_LINUX=1 -DLINUX=1">
<equals arg1="${target.os}" arg2="Linux"/>
</condition>
<condition property="os.filter" value="-DRVM_FOR_OSX=1">
<equals arg1="${target.os}" arg2="OSX"/>
</condition>
<condition property="os.filter" value="-DRVM_FOR_SOLARIS=1">
<equals arg1="${target.os}" arg2="Solaris"/>
</condition>
<condition property="classlib.filter" value="-DRVM_FOR_GNU_CLASSPATH=1">
<equals arg1="${classlib.provider}" arg2="GNU Classpath"/>
</condition>
<condition property="classlib.filter" value="-DRVM_FOR_OPENJDK=1">
<equals arg1="${classlib.provider}" arg2="OpenJDK"/>
</condition>
<condition property="gctrace.filter" value="-DRVM_WITH_GCTRACE=1" else="">
<equals arg1="${config.mmtk.plan}" arg2="org.mmtk.plan.semispace.gctrace.GCTrace"/>
</condition>
<condition property="gcspy.filter" value="-DRVM_WITH_GCSPY=1" else="">
<equals arg1="${config.include.gcspy}" arg2="true"/>
</condition>
<condition property="alignment-checking.filter" value="-DRVM_WITH_ALIGNMENT_CHECKING=1" else="">
<equals arg1="${config.alignment-checking}" arg2="true"/>
</condition>
<property name="addr.filter" value="-DRVM_FOR_${target.address.size}_ADDR=1"/>
<condition property="perfevent.filter" value="-DRVM_WITH_PERFEVENT=1" else="">
<equals arg1="${config.include.perfevent}" arg2="true"/>
</condition>
<property name="filter" value="${arch.filter} ${os.filter} ${addr.filter} ${gctrace.filter} ${gcspy.filter} ${alignment-checking.filter} ${perfevent.filter} ${classlib.filter}"/>
</target>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Build the build helpers * -->
<!-- * * -->
<!-- **************************************************************************** -->
<target name="prepare-build-helpers">
<mkdir dir="${helpers.classes}"/>
<javac srcdir="${jikesrvm.dir}/tools/build-helpers/src" destdir="${helpers.classes}" debug="true" classpath="${ant.jar}" source="${helpers.java.version}" target="${helpers.java.version}" includeantruntime="true" deprecation="yes"/>
</target>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Building MMTk section of the build * -->
<!-- * * -->
<!-- **************************************************************************** -->
<target name="compile-vmmagic-stub">
<mkdir dir="${build.vmmagic-stub.classes}"/>
<javac srcdir="${vmmagic-stub.java}" destdir="${build.vmmagic-stub.classes}" debug="true" debugLevel="${debugLevel}"
source="${mmtk.java.version}" target="${mmtk.java.version}" includeantruntime="false"/>
</target>
<target name="compile-options" depends="compile-vmmagic-stub">
<mkdir dir="${build.options.classes}"/>
<javac srcdir="${options.java}" destdir="${build.options.classes}" debug="true" debugLevel="${debugLevel}"
source="${mmtk.java.version}" target="${mmtk.java.version}" includeantruntime="false">
<classpath>
<pathelement location="${build.vmmagic-stub.classes}"/>
</classpath>
</javac>
</target>
<!-- we are compiling mmtk independently to ensure that it can build independent of the rvm -->
<target name="compile-mmtk" depends="compile-vmmagic-stub,compile-options" description="Compile MMTk toolkit.">
<property name="build.mmtk.classes" location="${build.dir}/mmtk/classes"/>
<mkdir dir="${build.mmtk.classes}"/>
<javac srcdir="${mmtk.java}" destdir="${build.mmtk.classes}" debug="true" debugLevel="${debugLevel}"
source="${mmtk.java.version}" target="${mmtk.java.version}" includeantruntime="false" deprecation="yes">
<classpath>
<pathelement location="${build.vmmagic-stub.classes}"/>
<pathelement location="${build.options.classes}"/>
</classpath>
</javac>
<jar destfile="${build.mmtk.jar}" basedir="${build.mmtk.classes}"/>
</target>
<target name="ensure-javacc">
<ant antfile="javacc.xml" dir="${jikesrvm.dir}/build/components" target="ensure"/>
</target>
<target name="mmtk-harness" depends="compile-mmtk,ensure-javacc" unless="${rust.build}">
<property name="build.mmtk-harness.classes" location="${build.dir}/mmtk/harness/classes"/>
<property file="${components.file}"/>
<mkdir dir="${generated.mmtk-harness-parser.java}"/>
<echo message="${javacc.dir}"/>
<javacc target="${basedir}/MMTk/harness/src-generated/org/mmtk/harness/lang/parser/Parser.jj" javacchome="${javacc.dir}" outputdirectory="${generated.mmtk-harness-parser.java}"/>
<mkdir dir="${build.mmtk-harness.classes}"/>
<javac srcdir="${mmtk-harness.java}:${mmtk-harness-vmmagic.java}:${mmtk-vm-harness.java}:${generated.mmtk-harness-parser.java}"
destdir="${build.mmtk-harness.classes}" debug="true" debugLevel="lines,source"
source="${harness.java.version}" target="${harness.java.version}" includeantruntime="false">
<classpath>
<pathelement location="${build.vmmagic-stub.classes}"/>
<pathelement location="${build.mmtk.classes}"/>
<pathelement location="${build.options.classes}"/>
</classpath>
</javac>
<jar destfile="${build.mmtk-harness.jar}" update="true" compress="false">
<manifest>
<attribute name="Main-Class" value="org.mmtk.harness.Main"/>
</manifest>
<fileset dir="${build.vmmagic-stub.classes}"/>
<fileset dir="${build.mmtk-harness.classes}"/>
<fileset dir="${build.mmtk.classes}"/>
<fileset dir="${build.options.classes}"/>
</jar>
<copy file="${build.mmtk-harness.jar}" todir="${dist.dir}"/>
</target>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Building and using the template-expander. * -->
<!-- * * -->
<!-- **************************************************************************** -->
<!-- Macro to preprocess source files -->
<macrodef name="GenerateFromTemplate">
<element name="args"/>
<sequential>
<java classname="org.jikesrvm.tools.template.GenerateFromTemplate" failonerror="true">
<classpath>
<pathelement location="${helpers.classes}"/>
</classpath>
<args/>
</java>
</sequential>
</macrodef>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Section for generating source prior to build occuring * -->
<!-- * * -->
<!-- **************************************************************************** -->
<!-- build baseclass for vmmagic -->
<target name="gen-vmmagic-word" depends="check-properties">
<mkdir dir="${generated.dir}/vmmagic/32/java/org/vmmagic/unboxed"/>
<mkdir dir="${generated.dir}/vmmagic/64/java/org/vmmagic/unboxed"/>
<copy file="${basedir}/tools/bootImageWriter/vmmagic/src/org/vmmagic/unboxed/ArchitecturalWord.template"
tofile="${generated.dir}/vmmagic/32/java/org/vmmagic/unboxed/ArchitecturalWord.java">
<filterset>
<filter token="32MASK" value=""/>
<filter token="64MASK" value="//"/>
</filterset>
</copy>
<copy file="${basedir}/tools/bootImageWriter/vmmagic/src/org/vmmagic/unboxed/ArchitecturalWord.template"
tofile="${generated.dir}/vmmagic/64/java/org/vmmagic/unboxed/ArchitecturalWord.java">
<filterset>
<filter token="32MASK" value="//"/>
<filter token="64MASK" value=""/>
</filterset>
</copy>
</target>
<!-- Macro to build operators and instruction formats for opt compiler -->
<macrodef name="generate-ir">
<attribute name="arch"/>
<attribute name="operatorList"/>
<sequential>
<echo level="info">Generating @{arch} operators</echo>
<mkdir dir="${generated.dir}/main/java/org/jikesrvm/compilers/opt/ir/@{arch}"/>
<GenerateFromTemplate>
<args>
<arg path="${build.ir.dir}/ArchOperator.template"/>
<arg path="${generated.dir}/main/java/org/jikesrvm/compilers/opt/ir/@{arch}/ArchOperator.java"/>
<arg value="ARCHOPERATORSPKG=org.jikesrvm.compilers.opt.ir.@{arch}"/>
<arg value="ARCH_IR_DIR=@{arch}"/>
<arg value="ARCHITECTURE=@{arch}"/>
<arg value="ARCH_OP_LIST=@{operatorList}"/>
</args>
</GenerateFromTemplate>
<GenerateFromTemplate>
<args>
<arg path="${build.ir.dir}/ArchOperators.template"/>
<arg path="${generated.dir}/main/java/org/jikesrvm/compilers/opt/ir/@{arch}/ArchOperators.java"/>
<arg value="ARCHOPERATORSPKG=org.jikesrvm.compilers.opt.ir.@{arch}"/>
<arg value="ARCHITECTURE=@{arch}"/>
<arg value="ARCH_OP_LIST=@{operatorList}"/>
</args>
</GenerateFromTemplate>
<GenerateFromTemplate>
<args>
<arg path="${build.ir.dir}/ArchOperatorNames.template"/>
<arg path="${generated.dir}/main/java/org/jikesrvm/compilers/opt/ir/@{arch}/ArchOperatorNames.java"/>
<arg value="ARCHOPERATORSPKG=org.jikesrvm.compilers.opt.ir.@{arch}"/>
<arg value="ARCHITECTURE=@{arch}"/>
<arg value="ARCH_OP_LIST=@{operatorList}"/>
</args>
</GenerateFromTemplate>
<GenerateFromTemplate>
<args>
<arg path="${build.ir.dir}/ArchInstructionFormats.template"/>
<arg path="${generated.dir}/main/java/org/jikesrvm/compilers/opt/ir/@{arch}/InstructionFormats.RAW"/>
<arg value="INSTRFMTPKG=org.jikesrvm.compilers.opt.ir.@{arch}"/>
<arg value="ARCH_IR_DIR=@{arch}"/>
<arg value="ARCH_IF_LIST=${build.ir.dir}/@{arch}/InstructionFormatList.dat"/>
<arg value="ARCHITECTURE=@{arch}"/>
</args>
</GenerateFromTemplate>
<SplitInstructionFormats
src="${generated.dir}/main/java/org/jikesrvm/compilers/opt/ir/@{arch}/InstructionFormats.RAW"
dest="${generated.dir}/main/java/org/jikesrvm/compilers/opt/ir/@{arch}"/>
</sequential>
</macrodef>
<!-- Macro to build BURS instruction selection rules for an architecture for the opt compiler -->
<macrodef name="generate-burs">
<attribute name="arch"/>
<attribute name="addressSize"/>
<attribute name="operatorList"/>
<attribute name="rulesList"/>
<sequential>
<echo level="info" message="Generating BURS for @{arch} @{addressSize} bits"/>
<mkdir dir="${generated.dir}/main/java/org/jikesrvm/compilers/opt/ir/@{arch}"/>
<mkdir dir="${generated.dir}/main/java/org/jikesrvm/compilers/opt/lir2mir/@{arch}_@{addressSize}"/>
<GenerateFromTemplate>
<args>
<arg path="${build.burs.dir}/ir.template"/>
<arg path="${generated.dir}/main/java/org/jikesrvm/compilers/opt/lir2mir/@{arch}_@{addressSize}/ir.brg"/>
<arg value="ARCHITECTURE_IR_DIR=${build.ir.dir}/@{arch}"/>
<arg value="ARCH_OP_LIST=@{operatorList}"/>
<arg value="THE_RULE_FILE=@{rulesList}"/>
</args>
</GenerateFromTemplate>
<exec executable="${build.jburg.dir}/jburg"
dir="${generated.dir}/main/java/org/jikesrvm/compilers/opt/lir2mir/@{arch}_@{addressSize}"
logError="true"
failonerror="true">
<arg value="-a"/>
<arg value="@{arch}_@{addressSize}"/>
<arg value="-p"/>
<arg value="BURS"/>
<arg value="ir.brg"/>
<redirector
output="${generated.dir}/main/java/org/jikesrvm/compilers/opt/lir2mir/@{arch}_@{addressSize}/jburg.out"/>
</exec>
<copy file="${basedir}/rvm/src-generated/opt-burs/jburg/burg.template"
todir="${generated.dir}/main/java/org/jikesrvm/compilers/opt/lir2mir/@{arch}_@{addressSize}">
<filterset>
<filter token="_ARCH_" value="@{arch}"/>
<filter token="_ARCH_ADDRESS_" value="@{arch}_@{addressSize}"/>
</filterset>
</copy>
<copy file="${build.burs.dir}/BURS_TreeNode.template"
todir="${generated.dir}/main/java/org/jikesrvm/compilers/opt/lir2mir/@{arch}_@{addressSize}">
<filterset>
<filter token="_ARCH_" value="@{arch}"/>
<filter token="_ARCH_ADDRESS_" value="@{arch}_@{addressSize}"/>
</filterset>
</copy>
<concat
destfile="${generated.dir}/main/java/org/jikesrvm/compilers/opt/lir2mir/@{arch}_@{addressSize}/BURS_TreeNode.java">
<filelist dir="${generated.dir}/main/java/org/jikesrvm/compilers/opt/lir2mir/@{arch}_@{addressSize}"
files="BURS_TreeNode.template"/>
<filelist dir="${generated.dir}/main/java/org/jikesrvm/compilers/opt/lir2mir/@{arch}_@{addressSize}"
files="BURS_State.template"/>
</concat>
<concat destfile="${generated.dir}/main/java/org/jikesrvm/compilers/opt/lir2mir/@{arch}_@{addressSize}/BURS_STATE.java">
<filelist dir="${generated.dir}/main/java/org/jikesrvm/compilers/opt/lir2mir/@{arch}_@{addressSize}"
files="burg.template"/>
<filelist dir="${generated.dir}/main/java/org/jikesrvm/compilers/opt/lir2mir/@{arch}_@{addressSize}"
files="jburg.out"/>
</concat>
</sequential>
</macrodef>
<macrodef name="uptodate-check">
<attribute name="fileName"/>
<attribute name="property"/>
<attribute name="srcDir1"/>
<attribute name="srcDir2" default="@{srcDir1}"/>
<attribute name="srcDir3" default="@{srcDir1}"/>
<sequential>
<if>
<conditions>
<not>
<isset property="force.generation"/>
</not>
</conditions>
<sequential>
<uptodate property="@{property}.uptodate" value="true">
<srcresources>
<fileset dir="@{srcDir1}">
<include name="**/*.*"/>
</fileset>
<fileset dir="@{srcDir2}">
<include name="**/*.*"/>
</fileset>
<fileset dir="@{srcDir3}">
<include name="**/*.*"/>
</fileset>
</srcresources>
<mapper type="merge" to="${generated.dir}/@{fileName}"/>
</uptodate>
</sequential>
</if>
</sequential>
</macrodef>
<target name="jburg-uptodate-check" depends="check-properties, prepare-ant-tasks">
<uptodate-check filename="JBurg-uptodate" property="jburg" srcdir1="${basedir}/rvm/src-generated/opt-burs/jburg/"/>
<!-- build.jburg.dir needs to be set if jburg does not need to be built again because gen-opt-ir depends on it. -->
<if>
<conditions>
<isset property="jburg.uptodate"/>
</conditions>
<sequential>
<property name="build.jburg.dir" location="${build.dir}/${host.name}/jburg"/>
</sequential>
</if>
</target>
<!-- build tool used to create burs -->
<target name="build-jburg" depends="check-properties" unless="jburg.uptodate">
<property name="build.jburg.dir" location="${build.dir}/${host.name}/jburg"/>
<mkdir dir="${build.jburg.dir}"/>
<exec executable="${bison.exe}" failonerror="true">
<arg value="--output=${build.jburg.dir}/gram.c"/>
<arg path="${basedir}/rvm/src-generated/opt-burs/jburg/gram.y"/>
</exec>
<exec executable="${c.exe}" failonerror="true">
<arg
line="-Wextra -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wmissing-prototypes -Wmissing-declarations -Wwrite-strings -Wno-aggregate-return -Wnested-externs -Wconversion -Wsign-compare -fkeep-inline-functions -Wno-unused -Wno-strict-prototypes -Wno-undef"/>
<arg value="-I"/>
<arg path="${basedir}/rvm/src-generated/opt-burs/jburg"/>
<arg value="-o"/>
<arg path="${build.jburg.dir}/jburg"/>
<arg path="${basedir}/rvm/src-generated/opt-burs/jburg/jburg.c"/>
<arg path="${build.jburg.dir}/gram.c"/>
</exec>
<touch file="${generated.dir}/JBurg-uptodate"/>
</target>
<target name="gen-opt-ir-uptodate-check" depends="prepare-build-helpers,check-properties, prepare-ant-tasks, jburg-uptodate-check">
<uptodate-check filename="Opt-IR-uptodate" property="opt-ir-files" srcdir1="${build.ir.dir}" srcdir2="${build.burs.dir}"/>
<!-- gen-opt-ir uses jburg, so gen-opt-ir can only be uptodate if jburg is also uptodate -->
<condition property="opt-ir.uptodate">
<and>
<isset property="opt-ir-files.uptodate"/>
<isset property="jburg.uptodate"/>
</and>
</condition>
</target>
<!-- build tool generated optimizing compiler IR -->
<target name="gen-opt-ir" depends="prepare-build-helpers,build-jburg" unless="opt-ir.uptodate">
<!-- generate rule lists for ppc 32 bit -->
<concat destfile="${generated.dir}/PPC-32bit_RulesList.dat">
<filelist dir="${build.burs.dir}/ppc" files="PPC_Common.rules,PPC_Alu32.rules,PPC_Mem32.rules"/>
</concat>
<!-- generate rule lists for ppc 64 bit -->
<concat destfile="${generated.dir}/PPC-64bit_RulesList.dat">
<filelist dir="${build.burs.dir}/ppc" files="PPC_Common.rules,PPC_Alu64.rules,PPC_Mem64.rules"/>
</concat>
<condition property="IA32-fp-rules"
value="IA32_SSE2.rules"
else="IA32_x87.rules">
<equals arg1="${target.arch.sse2}" arg2="full"/>
</condition>
<!-- generate rule lists for ia32 32 bit -->
<concat destfile="${generated.dir}/IA32-32bit_RulesList.dat">
<header file="${build.burs.dir}/ia32/IA32.rules"/>
<fileset dir="${build.burs.dir}/ia32">
<include name="**/*.rules"/>
<exclude name="**/IA32.rules"/>
<exclude name="**/*-64.rules"/>
<exclude name="**/*SSE2.rules"/>
<exclude name="**/*x87.rules"/>
</fileset>
<footer file="${build.burs.dir}/ia32/${IA32-fp-rules}"/>
</concat>
<!-- generate rule lists for ia32 64 bit -->
<concat destfile="${generated.dir}/IA32-64bit_RulesList.dat">
<header file="${build.burs.dir}/ia32/IA32.rules"/>
<fileset dir="${build.burs.dir}/ia32">
<include name="**/*.rules"/>
<exclude name="**/IA32.rules"/>
<exclude name="**/*-32.rules"/>
<exclude name="**/*SSE2.rules"/>
<exclude name="**/*x87.rules"/>
</fileset>
<footer file="${build.burs.dir}/ia32/${IA32-fp-rules}"/>
</concat>
<!-- generate common operators and instruction formats -->
<mkdir dir="${generated.dir}/main/java/org/jikesrvm/compilers/opt/ir/"/>
<GenerateFromTemplate>
<args>
<arg path="${build.ir.dir}/Operators.template"/>
<arg path="${generated.dir}/main/java/org/jikesrvm/compilers/opt/ir/Operators.java"/>
</args>
</GenerateFromTemplate>
<GenerateFromTemplate>
<args>
<arg path="${build.ir.dir}/InstructionFormats.template"/>
<arg path="${generated.dir}/main/java/org/jikesrvm/compilers/opt/ir/InstructionFormats.RAW"/>
<arg value="INSTRFMTPKG=org.jikesrvm.compilers.opt.ir"/>
</args>
</GenerateFromTemplate>
<SplitInstructionFormats
src="${generated.dir}/main/java/org/jikesrvm/compilers/opt/ir/InstructionFormats.RAW"
dest="${generated.dir}/main/java/org/jikesrvm/compilers/opt/ir"/>
<!-- generate architecture dependent operators and instruction formats -->
<generate-ir arch="ia32"
operatorList="${build.ir.dir}/ia32/OperatorList.dat"/>
<generate-ir arch="ppc"
operatorList="${build.ir.dir}/ppc/OperatorList.dat"/>
<!-- generate architecture dependent BURS rules -->
<generate-burs arch="ia32"
addressSize="32"
operatorList="${build.ir.dir}/ia32/OperatorList.dat"
rulesList="${generated.dir}/IA32-32bit_RulesList.dat"/>
<generate-burs arch="ia32"
addressSize="64"
operatorList="${build.ir.dir}/ia32/OperatorList.dat"
rulesList="${generated.dir}/IA32-64bit_RulesList.dat"/>
<generate-burs arch="ppc"
addressSize="32"
operatorList="${build.ir.dir}/ppc/OperatorList.dat"
rulesList="${generated.dir}/PPC-32bit_RulesList.dat"/>
<generate-burs arch="ppc"
addressSize="64"
operatorList="${build.ir.dir}/ppc/OperatorList.dat"
rulesList="${generated.dir}/PPC-64bit_RulesList.dat"/>
<touch file="${generated.dir}/Opt-IR-uptodate"/>
</target>
<target name="gen-options-uptodate-check" depends="check-properties, prepare-ant-tasks">
<uptodate-check filename="Options-uptodate" property="options" srcdir1="${options.dir}"/>
</target>
<!-- build options -->
<target name="gen-options" depends="prepare-build-helpers,check-properties" unless="options.uptodate">
<mkdir dir="${generated.java}/org/jikesrvm/compilers/opt"/>
<mkdir dir="${generated.java}/org/jikesrvm/adaptive/util"/>
<path id="template.vm.booleanopts.dat">
<pathelement path="${options.dir}/BooleanOptions.vm.dat"/>
</path>
<path id="template.vm.valueopts.dat">
<pathelement path="${options.dir}/ValueOptions.vm.dat"/>
</path>
<GenerateFromTemplate>
<args>
<arg path="${options.dir}/Options.template"/>
<arg path="${generated.java}/org/jikesrvm/Options.java"/>
<arg value="BOOLEAN_DAT_FILES=${toString:template.vm.booleanopts.dat}"/>
<arg value="VALUE_DAT_FILES=${toString:template.vm.valueopts.dat}"/>
</args>
</GenerateFromTemplate>
<mkdir dir="${generated.java}/org/jikesrvm/compilers/baseline"/>
<path id="template.shared.booleanopts.dat">
<pathelement path="${options.dir}/SharedBooleanOptions.dat"/>
</path>
<path id="template.shared.valueopts.dat">
<pathelement path="${options.dir}/SharedValueOptions.dat"/>
</path>
<path id="template.base.booleanopts.dat">
<pathelement path="${options.dir}/BooleanOptions.baseline.dat"/>
</path>
<path id="template.base.valueopts.dat">
<pathelement path="${options.dir}/ValueOptions.baseline.dat"/>
</path>
<GenerateFromTemplate>
<args>
<arg path="${options.dir}/BaselineOptions.template"/>
<arg path="${generated.java}/org/jikesrvm/compilers/baseline/BaselineOptions.java"/>
<arg value="BOOLEAN_DAT_FILES=${toString:template.base.booleanopts.dat} ${toString:template.shared.booleanopts.dat}"/>
<arg value="VALUE_DAT_FILES=${toString:template.base.valueopts.dat} ${toString:template.shared.valueopts.dat}"/>
<arg value="MYTYPE=BaselineOptions"/>
</args>
</GenerateFromTemplate>
<path id="template.opt.booleanopts.dat">
<pathelement path="${options.dir}/BooleanOptions.opt.dat"/>
</path>
<path id="template.opt.valueopts.dat">
<pathelement path="${options.dir}/ValueOptions.opt.dat"/>
</path>
<GenerateFromTemplate>
<args>
<arg path="${options.dir}/OptOptions.template"/>
<arg path="${generated.java}/org/jikesrvm/compilers/opt/OptOptions.java"/>
<arg value="BOOLEAN_DAT_FILES=${toString:template.opt.booleanopts.dat} ${toString:template.shared.booleanopts.dat}"/>
<arg value="VALUE_DAT_FILES=${toString:template.opt.valueopts.dat} ${toString:template.shared.valueopts.dat}"/>
<arg value="MYTYPE=OptOptions"/>
</args>
</GenerateFromTemplate>
<path id="template.aos.booleanopts.dat">
<pathelement path="${options.dir}/BooleanOptions.aos.dat"/>
</path>
<path id="template.aos.valueopts.dat">
<pathelement path="${options.dir}/ValueOptions.aos.dat"/>
</path>
<GenerateFromTemplate>
<args>
<arg path="${options.dir}/AOSOptions.template"/>
<arg path="${generated.java}/org/jikesrvm/adaptive/util/AOSExternalOptions.java"/>
<arg value="BOOLEAN_DAT_FILES=${toString:template.aos.booleanopts.dat}"/>
<arg value="VALUE_DAT_FILES=${toString:template.aos.valueopts.dat}"/>
<arg value="MYTYPE=AOSExternalOptions"/>
</args>
</GenerateFromTemplate>
<touch file="${generated.dir}/Options-uptodate"/>
</target>
<target name="gen-ia32-assembler-uptodate-check" depends="check-properties, prepare-ant-tasks, compile-vmmagic-stub">
<property name="ia32-assembler-opt.dir" location="${basedir}/rvm/src-generated/ia32-assembler-opt"/>
<property name="build.ia32-assembler.dir" location="${basedir}/rvm/src-generated/ia32-assembler"/>
<uptodate-check filename="IA32-Assembler-uptodate" property="ia32-assembler" srcdir1="${ia32-assembler-opt.dir}" srcdir2="${build.ia32-assembler.dir}" srcdir3="${build.vmmagic-stub.classes}" />
</target>
<target name="gen-ia32-assembler" depends="prepare-build-helpers,check-properties,compile-vmmagic-stub" unless="ia32-assembler.uptodate">
<mkdir dir="${generated.java}/org/jikesrvm/compilers/common/assembler/ia32"/>
<property name="build.ia32-assembler.dir" location="${basedir}/rvm/src-generated/ia32-assembler"/>
<exec executable="${bash.exe}" failonerror="true" dir="${build.ia32-assembler.dir}">
<arg value="genAssembler.sh"/>
<arg path="${generated.java}/org/jikesrvm/compilers/common/assembler/ia32/Assembler.java"/>
<arg value="Assembler.in"/>
</exec>