Content deleted Content added
→Threading models and example syntax: new section |
|||
Line 161:
[[User:Bulbazord|Bulbazord]] ([[User talk:Bulbazord|talk]]) 04:10, 11 November 2016 (UTC)
== Threading models and example syntax ==
The section describing Direct Threaded code says the following:
''This form is simple, but may have overheads because the thread consists only of machine addresses, so all further parameters must be loaded indirectly from memory.''<ref>https://en.wikipedia.org/wiki/Threaded_code#Direct_threading</ref>
before later giving an example of direct-threaded code that contains inlined constants (A and B), in direct contradiction to the quote I've provided above. I propose the following wording be used in it's place:
''This form is simple, but if the thread consists only of machine addresses, then all further parameters must be loaded indirectly from memory, which may impose overheads.''
Additionally, a grammar similar to C (in particular, using switches) is used, but constants appear to be referenced via address, yet used as values! I advise replacing instances of &A or &B with simple A or B, and using a C-procedure style grammar instead of a C-switch grammar, perhaps with something like "jump" or "jump to" at the start of a reference to another piece of code, to clarify the manner in which the code in question is being used.
[[Special:Contributions/2602:301:7764:AC00:9ED:9E40:9294:D87|2602:301:7764:AC00:9ED:9E40:9294:D87]] ([[User talk:2602:301:7764:AC00:9ED:9E40:9294:D87|talk]]) 22:39, 1 June 2019 (UTC)
|