4 ms·
The `thr` statement is not very useful at the moment. It's impossible to pass parameters to a piece of code using threads :( I have to duplicate my code in or
by azeirah 11y ago
The `thr` statement is not very useful at the moment.
It's impossible to pass parameters to a piece of code using threads :(
I have to duplicate my code in order to use the threads
- zokier 11y agoNot sure how you would integrate that sort of thing to the ISA though. Maybe something like: 00 THR 004 001 @A0 04 JEQ 001 @A0 010 08 --- parent thread ... 10 --- child thread where THR instruction would store a value that is visible only to child in some memory location, in this example value 001 would be stored at @A0, which is then used to distinguish the threads in a conditional jump.
- chipsy 11y agoIt's really ungainly to work with -- but it does drop the cycle counts to solve the problems by running more threads.
- ekimekim 11y agoWhat's really funny is when the program's trivially paralellizable (any of them where the entire thing to draw fits in memory) and the main thing your threads are doing is to start more threads, then finally all the threads do 2 draw instructions each.