Overview
| Artifact ID: | 233139294e5861e13690de954b3748ba227b7369 |
|---|---|
| Ticket: | 729692ffffffffffffffffffffffffffffffffff
redef of bcc'ed commands inoperant in current bcode |
| User & Date: | msofer on 2004-03-10 21:02:59 |
Changes
- icomment:
Logged In: YES user_id=148712 Idea - but may be costly in runtime. Define INST_START_CMD and INST_END_CMD. Let the bc engine have two states: - normal N: execute bytecodes - exceptional E: find next command from the source, interpret it State N: INST_START_CMD: check epoch; if ok do nothing, else switch state to E and rexec INST_START_CMD INST_END_CMD: a noop State E: INST_START_CMD: find in the sources the command corresponding to the next command; interpret it and push its result on the stack; jump to the instruction after the corresponding INST_END_CMD INST_END_CMD: a noop It can possibly be made marginally more efficient (in the sense of it being less costly in state E). But I do think this approach could work. Feedback? - login: "msofer"
- mimetype: "text/plain"
- username: "msofer"