-
Notifications
You must be signed in to change notification settings - Fork 1
/
joosc
executable file
·29 lines (28 loc) · 845 Bytes
/
joosc
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
#!/usr/bin/env csh
#
# joosc: compiles JOOS source programs into class files using the A- JOOS compiler.
#
# usage: joosc f1.java f2.java ... fn.joos
#
# note: you should name each source file for ordinary classes with
# .java extensions and all external classes with .joos extensions
if ( { $PEEPDIR/joos $* } ) then
foreach f ( $* )
if ( $f != "-O" && $f:e != "joos" ) then
java -jar $PEEPDIR/jasmin.jar $f:r.j
if ( $1 == "-O" ) then
$PEEPDIR/djas -w $f:r.class > $f:r.optdump
else
$PEEPDIR/djas -w $f:r.class > $f:r.dump
endif
endif
end
# echo "----- Method code sizes ----"
if ( $1 == "-O" ) then
# grep code_length *.optdump
grep -a code_length *.optdump > optdump.size
else
# grep code_length *.dump
grep -a code_length *.dump > dump.size
endif
endif