Commit f8de91a1 authored by Benoit Perrot's avatar Benoit Perrot
Browse files

Index: ChangeLog

--- ChangeLog Sat, 11 Oct 2003 15:48:01 +0200 benoit (mipsy/2_ChangeLog 1.51 644)
+++ ChangeLog Tue, 06 Jan 2004 18:56:55 +0100 noe (mipsy/2_ChangeLog 1.51 644)
@@ -1,3 +1,10 @@
+2004-01-06  Benoît Perrot  <benoit@lrde.epita.fr>
+
+       * dev/mipsy.py: Add lazy_overwrite and comments.
+       * dev/mipsy-builder-gen.py, dev/mipsy-mk-inst-gen.py,
+       * dev/mipsy-parser-gen.py, dev/mipsy-scanner-gen.py:
+       Limit function importations.
+
parent 219dd9e9
2004-01-06 Benot Perrot <benoit@lrde.epita.fr>
* dev/mipsy.py: Add lazy_overwrite and comments.
* dev/mipsy-builder-gen.py, dev/mipsy-mk-inst-gen.py,
* dev/mipsy-parser-gen.py, dev/mipsy-scanner-gen.py:
Limit function importations.
2003-10-11 Benot Perrot <benoit@lrde.epita.fr>
* src/vm/cpu.hh, src/vm/virtual_machine.hh, src/vm/vm-tasks.cc:
......
......@@ -22,7 +22,7 @@ import sys
import string, re
import mipsy
from mipsy import license, depth, define_id, class_id
from mipsy import license, depth, class_id
parser = mipsy.InstructionSetParser()
instructions = parser.parse(sys.stdin)
......
......@@ -22,7 +22,7 @@ import sys
import string, re
import mipsy
from mipsy import license, depth, define_id, class_id
from mipsy import license, depth
#### Mipsy Makefile.am of inst/ generator --------------------------
parser = mipsy.InstructionSetParser()
......
......@@ -22,7 +22,7 @@ import sys
import string, re
import mipsy
from mipsy import license, depth, define_id, class_id
from mipsy import license, depth, define_id
parser = mipsy.InstructionSetParser()
instructions = parser.parse(sys.stdin)
......
......@@ -22,7 +22,7 @@ import sys
import string, re
import mipsy
from mipsy import license, depth, define_id, class_id
from mipsy import license, depth, define_id
parser = mipsy.InstructionSetParser()
instructions = parser.parse(sys.stdin)
......
......@@ -19,6 +19,7 @@
##
import string
import os.path, filecmp, shutil
from xml.sax import ContentHandler, make_parser
## ---------------------------------------------------------------------------
......@@ -55,10 +56,20 @@ def depth(root):
res.append([e] + child)
return res
## Overwrite file if different
def lazy_overwrite(ref, new):
if not os.path.isfile(ref) or \
not filecmp.cmp(ref, new):
print "> Overwrite: " + ref
shutil.copy(new, ref)
## Return a conventional macro identifier
def define_id(s):
return string.upper(s)
## Return a conventional C++ class identifier
def class_id(s):
# Stupid libc J numeric constant.
# Rename j as jmp for convenience
if s == "j":
return "Jmp"
res = ""
......@@ -69,11 +80,14 @@ def class_id(s):
res = res + string.upper(s[i])
non_ascii = False
else:
res = res + string.lower(s[i])
res = res + s[i]
else:
non_ascii = True
return res
## Return a conventional file name
def file_id(s):
return string.lower(s)
## -------------------------------------
class Param:
......
......@@ -2,167 +2,173 @@
(Created-By-Prcs-Version 1 3 2)
(Project-Description "")
(Project-Version mipsy 0 57)
(Parent-Version mipsy 0 56)
(Project-Version mipsy 0 58)
(Parent-Version mipsy 0 57)
(Version-Log
"Index: ChangeLog
from Benot Perrot <benoit@lrde.epita.fr>
* src/vm/cpu.hh, src/vm/virtual_machine.hh, src/vm/vm-tasks.cc:
Make the CPU responsible of its instruction flow.
--- ChangeLog Sat, 11 Oct 2003 15:48:01 +0200 benoit (mipsy/2_ChangeLog 1.51 644)
+++ ChangeLog Tue, 06 Jan 2004 18:56:55 +0100 noe (mipsy/2_ChangeLog 1.51 644)
@@ -1,3 +1,10 @@
+2004-01-06 Benot Perrot <benoit@lrde.epita.fr>
+
+ * dev/mipsy.py: Add lazy_overwrite and comments.
+ * dev/mipsy-builder-gen.py, dev/mipsy-mk-inst-gen.py,
+ * dev/mipsy-parser-gen.py, dev/mipsy-scanner-gen.py:
+ Limit function importations.
+
")
(New-Version-Log
"")
(Checkin-Time "Sat, 11 Oct 2003 15:48:01 +0200")
(Checkin-Login benoit)
(Checkin-Time "Tue, 06 Jan 2004 18:57:53 +0100")
(Checkin-Login noe)
(Files
;; ./
(AUTHORS (mipsy/0_AUTHORS 1.1 644))
(COPYING (mipsy/1_COPYING 1.1 644))
(ChangeLog (mipsy/2_ChangeLog 1.51 644))
(Makefile.am (mipsy/3_Makefile.a 1.6 644))
(NEWS (mipsy/b/25_NEWS 1.5 644))
(README (mipsy/4_README 1.2 644))
(TODO (mipsy/5_TODO 1.2 644))
(bootstrap (mipsy/b/14_bootstrap 1.1 755))
(configure.ac (mipsy/6_configure. 1.6 644))
(AUTHORS (mipsy/0_AUTHORS 1.1 604))
(COPYING (mipsy/1_COPYING 1.1 604))
(ChangeLog (mipsy/2_ChangeLog 1.52 604))
(Makefile.am (mipsy/3_Makefile.a 1.6 604))
(NEWS (mipsy/b/25_NEWS 1.5 604))
(README (mipsy/4_README 1.2 604))
(TODO (mipsy/5_TODO 1.2 604))
(bootstrap (mipsy/b/14_bootstrap 1.1 705))
(configure.ac (mipsy/6_configure. 1.6 604))
(prj (mipsy.prj) :symlink)
;; ./config/
(config/Makefile.am (mipsy/7_Makefile.a 1.1 644))
(config/Makefile.am (mipsy/7_Makefile.a 1.1 604))
;; ./dev/
(dev/mipsy-builder-gen.py (mipsy/15_mipsy-buil 1.5 705))
(dev/mipsy-inst-gen.py (mipsy/12_mipsy-inst 1.3 745))
(dev/mipsy-mk-inst-gen.py (mipsy/b/15_mipsy-mk-i 1.2 745))
(dev/mipsy-parser-gen.py (mipsy/13_mipsy-pars 1.4 745))
(dev/mipsy-scanner-gen.py (mipsy/14_mipsy-scan 1.6 745))
(dev/mipsy.py (mipsy/16_mipsy.py 1.4 745))
(dev/mipsy.xml (mipsy/17_mipsy.xml 1.11 644))
(dev/mipsy-builder-gen.py (mipsy/15_mipsy-buil 1.6 705))
(dev/mipsy-inst-gen.py (mipsy/12_mipsy-inst 1.3 705))
(dev/mipsy-mk-inst-gen.py (mipsy/b/15_mipsy-mk-i 1.3 705))
(dev/mipsy-parser-gen.py (mipsy/13_mipsy-pars 1.5 705))
(dev/mipsy-scanner-gen.py (mipsy/14_mipsy-scan 1.7 705))
(dev/mipsy.py (mipsy/16_mipsy.py 1.5 604))
(dev/mipsy.xml (mipsy/17_mipsy.xml 1.11 604))
;; ./doc/
(doc/Makefile.am (mipsy/b/9_Makefile.a 1.1 644))
(doc/Makefile.am (mipsy/b/9_Makefile.a 1.1 604))
(doc/fdl.texi (mipsy/b/11_fdl.texi 1.1 604))
(doc/mipsy.texi (mipsy/b/10_mipsy.texi 1.2 604))
;; ./src/
(src/Makefile.am (mipsy/18_Makefile.a 1.2 644))
(src/common.hh (mipsy/19_common.hh 1.3 644))
(src/mipsy-tasks.cc (mipsy/20_mipsy-task 1.2 644))
(src/mipsy-tasks.hh (mipsy/21_mipsy-task 1.2 644))
(src/Makefile.am (mipsy/18_Makefile.a 1.2 604))
(src/common.hh (mipsy/19_common.hh 1.3 604))
(src/mipsy-tasks.cc (mipsy/20_mipsy-task 1.2 604))
(src/mipsy-tasks.hh (mipsy/21_mipsy-task 1.2 604))
(src/mipsy.cc (mipsy/22_mipsy.cc 1.3 604))
(src/modules.hh (mipsy/23_modules.hh 1.2 644))
(src/modules.hh (mipsy/23_modules.hh 1.2 604))
;; ./src/inst/
(src/inst/data_section.hh (mipsy/24_data_secti 1.3 604))
(src/inst/exp-visitor.hh (mipsy/25_exp-visito 1.2 644))
(src/inst/exp.hh (mipsy/26_exp.hh 1.2 644))
(src/inst/inst-tasks.cc (mipsy/b/23_inst-tasks 1.1 644))
(src/inst/inst-tasks.hh (mipsy/b/22_inst-tasks 1.1 644))
(src/inst/inst.hh (mipsy/27_inst.hh 1.2 644))
(src/inst/label.cc (mipsy/b/21_label.cc 1.1 644))
(src/inst/label.hh (mipsy/b/20_label.hh 1.1 644))
(src/inst/program.hh (mipsy/28_program.hh 1.2 644))
(src/inst/program_builder.cc (mipsy/29_program_bu 1.10 644))
(src/inst/program_solver.hh (mipsy/30_program_so 1.6 644))
(src/inst/register.hh (mipsy/31_register.h 1.4 644))
(src/inst/exp-visitor.hh (mipsy/25_exp-visito 1.2 604))
(src/inst/exp.hh (mipsy/26_exp.hh 1.2 604))
(src/inst/inst-tasks.cc (mipsy/b/23_inst-tasks 1.1 604))
(src/inst/inst-tasks.hh (mipsy/b/22_inst-tasks 1.1 604))
(src/inst/inst.hh (mipsy/27_inst.hh 1.2 604))
(src/inst/label.cc (mipsy/b/21_label.cc 1.1 604))
(src/inst/label.hh (mipsy/b/20_label.hh 1.1 604))
(src/inst/program.hh (mipsy/28_program.hh 1.2 604))
(src/inst/program_builder.cc (mipsy/29_program_bu 1.10 604))
(src/inst/program_solver.hh (mipsy/30_program_so 1.6 604))
(src/inst/register.hh (mipsy/31_register.h 1.4 604))
(src/inst/section.hh (mipsy/b/24_section.hh 1.4 604))
(src/inst/text_section.hh (mipsy/32_text_secti 1.3 604))
;; ./src/misc/
(src/misc/Makefile.am (mipsy/33_Makefile.a 1.2 644))
(src/misc/contract.hh (mipsy/34_contract.h 1.1 644))
(src/misc/deref.hh (mipsy/35_deref.hh 1.1 644))
(src/misc/escape.hh (mipsy/36_escape.hh 1.1 644))
(src/misc/has.hh (mipsy/37_has.hh 1.1 644))
(src/misc/select_const.hh (mipsy/38_select_con 1.1 644))
(src/misc/Makefile.am (mipsy/33_Makefile.a 1.2 604))
(src/misc/contract.hh (mipsy/34_contract.h 1.1 604))
(src/misc/deref.hh (mipsy/35_deref.hh 1.1 604))
(src/misc/escape.hh (mipsy/36_escape.hh 1.1 604))
(src/misc/has.hh (mipsy/37_has.hh 1.1 604))
(src/misc/select_const.hh (mipsy/38_select_con 1.1 604))
;; ./src/parse/
(src/parse/Makefile.am (mipsy/39_Makefile.a 1.2 644))
(src/parse/asm-scan.hh (mipsy/40_asm-scan.h 1.2 644))
(src/parse/libparse.cc (mipsy/41_libparse.c 1.4 644))
(src/parse/libparse.hh (mipsy/42_libparse.h 1.4 644))
(src/parse/parse-tasks.cc (mipsy/43_parse-task 1.6 644))
(src/parse/parse-tasks.hh (mipsy/44_parse-task 1.4 644))
(src/parse/Makefile.am (mipsy/39_Makefile.a 1.2 604))
(src/parse/asm-scan.hh (mipsy/40_asm-scan.h 1.2 604))
(src/parse/libparse.cc (mipsy/41_libparse.c 1.4 604))
(src/parse/libparse.hh (mipsy/42_libparse.h 1.4 604))
(src/parse/parse-tasks.cc (mipsy/43_parse-task 1.6 604))
(src/parse/parse-tasks.hh (mipsy/44_parse-task 1.4 604))
;; ./src/task/
(src/task/Makefile.am (mipsy/45_Makefile.a 1.2 644))
(src/task/task-tasks.cc (mipsy/46_task-tasks 1.2 644))
(src/task/task-tasks.hh (mipsy/47_task-tasks 1.2 644))
(src/task/task.cc (mipsy/48_task.cc 1.2 644))
(src/task/task.hh (mipsy/49_task.hh 1.3 644))
(src/task/Makefile.am (mipsy/45_Makefile.a 1.2 604))
(src/task/task-tasks.cc (mipsy/46_task-tasks 1.2 604))
(src/task/task-tasks.hh (mipsy/47_task-tasks 1.2 604))
(src/task/task.cc (mipsy/48_task.cc 1.2 604))
(src/task/task.hh (mipsy/49_task.hh 1.3 604))
(src/task/task_register.cc (mipsy/50_task_regis 1.5 604))
(src/task/task_register.hh (mipsy/51_task_regis 1.3 604))
;; ./src/vm/
(src/vm/Makefile.am (mipsy/b/0_Makefile.a 1.3 644))
(src/vm/cpu.hh (mipsy/b/1_cpu.hh 1.9 644))
(src/vm/Makefile.am (mipsy/b/0_Makefile.a 1.3 604))
(src/vm/cpu.hh (mipsy/b/1_cpu.hh 1.9 604))
(src/vm/cpu.cc (mipsy/b/5_virtual_ma 1.17 604))
(src/vm/memory.hh (mipsy/b/2_memory.hh 1.7 644))
(src/vm/segment.hh (mipsy/b/3_segment.hh 1.2 644))
(src/vm/table.hh (mipsy/b/4_table.hh 1.2 644))
(src/vm/memory.hh (mipsy/b/2_memory.hh 1.7 604))
(src/vm/segment.hh (mipsy/b/3_segment.hh 1.2 604))
(src/vm/table.hh (mipsy/b/4_table.hh 1.2 604))
(src/vm/virtual_machine.hh (mipsy/b/6_virtual_ma 1.12 604))
(src/vm/vm-tasks.cc (mipsy/b/7_vm-tasks.c 1.5 604))
(src/vm/vm-tasks.hh (mipsy/b/8_vm-tasks.h 1.3 604))
;; ./tests/
(tests/Makefile.am (mipsy/b/26_Makefile.a 1.1 644))
(tests/common.mk (mipsy/b/27_common.mk 1.1 644))
(tests/generate-ref.mk (mipsy/b/28_generate-r 1.1 644))
(tests/mipsy-check (mipsy/b/29_mipsy-chec 1.1 745))
(tests/Makefile.am (mipsy/b/26_Makefile.a 1.1 604))
(tests/common.mk (mipsy/b/27_common.mk 1.1 604))
(tests/generate-ref.mk (mipsy/b/28_generate-r 1.1 604))
(tests/mipsy-check (mipsy/b/29_mipsy-chec 1.1 705))
;; ./tests/good/
(tests/good/Makefile.am (mipsy/b/30_Makefile.a 1.1 644))
(tests/good/add-sub.s (mipsy/b/31_add-sub.s 1.2 644))
(tests/good/and-or-nor-xor.s (mipsy/b/32_and-or-nor 1.2 644))
(tests/good/check-good (mipsy/c/9_check-good 1.1 745))
(tests/good/exit.s (mipsy/b/33_exit.s 1.2 644))
(tests/good/extended-euclide.s (mipsy/b/34_extended-e 1.2 644))
(tests/good/gtcd.s (mipsy/b/35_gtcd.s 1.2 644))
(tests/good/modular-exponent.s (mipsy/b/36_modular-ex 1.2 644))
(tests/good/neg.s (mipsy/b/37_neg.s 1.2 644))
(tests/good/not.s (mipsy/b/38_not.s 1.2 644))
(tests/good/print.s (mipsy/b/39_print.s 1.2 644))
(tests/good/print_int.s (mipsy/b/40_print_int. 1.2 644))
(tests/good/read_int.in (mipsy/b/41_read_int.i 1.1 644))
(tests/good/read_int.s (mipsy/b/42_read_int.s 1.2 644))
(tests/good/seq-sne.s (mipsy/b/43_seq-sne.s 1.2 644))
(tests/good/shift.s (mipsy/b/44_shift.s 1.2 644))
(tests/good/Makefile.am (mipsy/b/30_Makefile.a 1.1 604))
(tests/good/add-sub.s (mipsy/b/31_add-sub.s 1.2 604))
(tests/good/and-or-nor-xor.s (mipsy/b/32_and-or-nor 1.2 604))
(tests/good/check-good (mipsy/c/9_check-good 1.1 705))
(tests/good/exit.s (mipsy/b/33_exit.s 1.2 604))
(tests/good/extended-euclide.s (mipsy/b/34_extended-e 1.2 604))
(tests/good/gtcd.s (mipsy/b/35_gtcd.s 1.2 604))
(tests/good/modular-exponent.s (mipsy/b/36_modular-ex 1.2 604))
(tests/good/neg.s (mipsy/b/37_neg.s 1.2 604))
(tests/good/not.s (mipsy/b/38_not.s 1.2 604))
(tests/good/print.s (mipsy/b/39_print.s 1.2 604))
(tests/good/print_int.s (mipsy/b/40_print_int. 1.2 604))
(tests/good/read_int.in (mipsy/b/41_read_int.i 1.1 604))
(tests/good/read_int.s (mipsy/b/42_read_int.s 1.2 604))
(tests/good/seq-sne.s (mipsy/b/43_seq-sne.s 1.2 604))
(tests/good/shift.s (mipsy/b/44_shift.s 1.2 604))
;; ./tests/lexical/
(tests/lexical/Makefile.am (mipsy/b/45_Makefile.a 1.1 644))
(tests/lexical/check-lexical (mipsy/c/10_check-lexi 1.1 745))
(tests/lexical/invalid-string-hexa.s (mipsy/b/46_invalid-st 1.1 644))
(tests/lexical/invalid-string-octal.s (mipsy/b/47_invalid-st 1.1 644))
(tests/lexical/unlimited-regs.s (mipsy/b/48_unlimited- 1.1 644))
(tests/lexical/unrecognized-escape.s (mipsy/b/49_unrecogniz 1.1 644))
(tests/lexical/unterminated-string.s (mipsy/b/50_unterminat 1.1 644))
(tests/lexical/Makefile.am (mipsy/b/45_Makefile.a 1.1 604))
(tests/lexical/check-lexical (mipsy/c/10_check-lexi 1.1 705))
(tests/lexical/invalid-string-hexa.s (mipsy/b/46_invalid-st 1.1 604))
(tests/lexical/invalid-string-octal.s (mipsy/b/47_invalid-st 1.1 604))
(tests/lexical/unlimited-regs.s (mipsy/b/48_unlimited- 1.1 604))
(tests/lexical/unrecognized-escape.s (mipsy/b/49_unrecogniz 1.1 604))
(tests/lexical/unterminated-string.s (mipsy/b/50_unterminat 1.1 604))
;; ./tests/runtime/
(tests/runtime/Makefile.am (mipsy/b/51_Makefile.a 1.1 644))
(tests/runtime/check-runtime (mipsy/c/11_check-runt 1.1 745))
(tests/runtime/neg.s (mipsy/c/0_neg.s 1.2 644))
(tests/runtime/no-main.s (mipsy/c/1_no-main.s 1.2 644))
(tests/runtime/Makefile.am (mipsy/b/51_Makefile.a 1.1 604))
(tests/runtime/check-runtime (mipsy/c/11_check-runt 1.1 705))
(tests/runtime/neg.s (mipsy/c/0_neg.s 1.2 604))
(tests/runtime/no-main.s (mipsy/c/1_no-main.s 1.2 604))
;; ./tests/solve/
(tests/solve/Makefile.am (mipsy/c/2_Makefile.a 1.1 644))
(tests/solve/check-solve (mipsy/c/12_check-solv 1.1 745))
(tests/solve/undefined-labels.s (mipsy/c/3_undefined- 1.2 644))
(tests/solve/Makefile.am (mipsy/c/2_Makefile.a 1.1 604))
(tests/solve/check-solve (mipsy/c/12_check-solv 1.1 705))
(tests/solve/undefined-labels.s (mipsy/c/3_undefined- 1.2 604))
;; ./tests/syntax/
(tests/syntax/Makefile.am (mipsy/c/4_Makefile.a 1.1 644))
(tests/syntax/Makefile.am (mipsy/c/4_Makefile.a 1.1 604))
(tests/syntax/asciiz-wrong-param.s (mipsy/c/5_asciiz-wro 1.2 604))
(tests/syntax/check-syntax (mipsy/c/13_check-synt 1.1 745))
(tests/syntax/too-many-operands.s (mipsy/c/6_too-many-o 1.2 644))
(tests/syntax/check-syntax (mipsy/c/13_check-synt 1.1 705))
(tests/syntax/too-many-operands.s (mipsy/c/6_too-many-o 1.2 604))
;; ./tests/unlimited/
(tests/unlimited/Makefile.am (mipsy/c/7_Makefile.a 1.1 644))
(tests/unlimited/check-unlimited (mipsy/c/14_check-unli 1.1 745))
(tests/unlimited/simple-exp.s (mipsy/c/8_simple-exp 1.2 644))
(tests/unlimited/Makefile.am (mipsy/c/7_Makefile.a 1.1 604))
(tests/unlimited/check-unlimited (mipsy/c/14_check-unli 1.1 705))
(tests/unlimited/simple-exp.s (mipsy/c/8_simple-exp 1.2 604))
)
(Populate-Ignore
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment