4 ms·
And you might want to avoid multiplication operations, because the compiler will likely have to implement those in software, which will be slow, and might make
by Bromskloss 9y ago
And you might want to avoid multiplication operations, because the compiler will likely have to implement those in software, which will be slow, and might make your program too large to fit in the memory… :-)
- DamonHD 9y agoThe AVRs, at least some of them, have reasonable Flash and RAM and EEPROM (v nice), and a single-instruction multiply. Much nicer than the 8-bit CPUs that I used to program back in days of yore...
- Bromskloss 9y agoPff, look at the fancy people over here!
- emilfihlman 9y ago>a single-instruction multiply But not single cycle ;) This is important!
- howard941 9y agoThe recommended 32Fs have FPUs so the hit isn't all that bad
- fulafel 9y agoThis is targeted at cortex m4, arm cores with hardware integer and division (and even integer simd).
- Bromskloss 9y agoGot it. I was thinking of the world of microcontrollers in general.
- phkahler 9y agoAs a rule, I now try to avoid anything that isn't 32 bits with hardware multiplier. Unless you need a controller for under 50 cents I don't think that's a high bar any more. Floating point - much as I'd like to make it a minimum requirement I still enjoy doing some math in fixed point. Oh for the day when RV32IMAF can be considered low end.
- Bromskloss 9y agoFor me, it's the elegance of making do with the least sophisticated components. Using a microcontroller at all can be seen as bringing out the big guns.