diff options
| author | Shinya Sato <shinnya.sato@gmail.com> | 2022-02-09 16:24:51 +0900 |
|---|---|---|
| committer | Shinya Sato <shinnya.sato@gmail.com> | 2022-02-09 16:24:51 +0900 |
| commit | 8bc4f689560721859e9660eadfc9789aedfb7fc0 (patch) | |
| tree | a3b65af4c630d8c644ae6b8e6a04d91d779fe683 | |
| parent | f867b11f97b105ccb563e1157fe480ad63712df0 (diff) | |
| parent | 94b8d595364f47f4738d850fb6d928125f114ab8 (diff) | |
| download | inpla-8bc4f689560721859e9660eadfc9789aedfb7fc0.tar.gz inpla-8bc4f689560721859e9660eadfc9789aedfb7fc0.zip | |
Merge branch 'develop'
| -rw-r--r-- | Changelog.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Changelog.md b/Changelog.md index d51beb0..e49617c 100644 --- a/Changelog.md +++ b/Changelog.md @@ -3,8 +3,8 @@ ### v0.7.2 (released on 9 February 2022) #### Polished: -- **Bytecodes for global names**: To obtain a global name whose name is `sym` on a `dest` register, the following bytecode is executed: `MKGNAME dest sym` where the type of `sym` is `char*`. Every symbol for agents and global names is assigned to the unique ID number managed by `IdTable`, so by introducing the ID number `id` for the `sym`, the bytecode is changed into `MKGNAME id dest`. -- **Separation of source codes of NameTable**: The `NameTable` is used to lookup ID numbers for symbol chars in compilation and interpreter execution. By changing the bytecode of `MKGNAME`, there becomes no need to be used in virtual machine execution directly, so the source codes for the `NameTable` is separated from `src/inpla.y`. This contributes quite a little speed-up at most 1%. +- **Bytecode format for global names**: The bytecode format to obtain a global name is changed from `MKGNAME destRegNum (char *)sym` into `MKGNAME (int)id destRegNum`. Every symbol for agents and global names is assigned the unique ID number which is decided during compilation processes. So, the ID number `id` should have been taken, instead of `(char *)sym`. +- **Separation of NameTable codes**: The `NameTable` is used to lookup ID numbers for symbol chars in compilation processes and interpreter executions. By changing the bytecode format of `MKGNAME`, it becomes no need for virtual machine execution directly, so the source codes for the `NameTable` operation is separated from the main source `src/inpla.y`. This contributes a little speed-up at most 1%. |
