RE: PicoBlaze Simulator in JavaScript
August 17, 2022 at 4:43 pm
(This post was last modified: August 17, 2022 at 4:51 pm by bennyboy.)
(August 17, 2022 at 3:42 pm)The Grand Nudger Wrote: Do you want style points or utility?
In programming, there's normally utility in style-- something that new programmers ignore when they try to write ultra-compact code. More readable code can reduce mistakes, and allow other programmers to understand it quickly: a potential savings of hours of real-life human time instead of a few milliseconds of CPU time. For most tasks, even a primitive CPU will be overkill by orders of magnitutde.
FA's case is different-- he's having performance issues, and he'll have to axe style wherever necessary to maximize efficiency-- even if that means dog-shit-looking code that nobody will enjoy reading.
@FlatAssembler
I'm assuming you're using JavaScript because this is meant to run online. Did I miss (or forget) a link to a webpage that is actually running this? Do you have sample code that you feel is executing too slowly?