+SpiceWare Posted August 23, 2020 Share Posted August 23, 2020 I thought I'd start a collection of useful tidbits. If you know of something please post it and I'll add it to this list. Hardware Division via Multiplication - the ARM doesn't support division via hardware, but we can use this trick to quickly divide by a fixed value. Speed boost - run code in RAM - if you have some RAM to spare, running time critical ARM code in RAM can be faster than running it in ROM. using long long (64 bit integers)? - using 64-bit values for bitwise operations Speed up your memset and memcpy with loop unrolling - rewrite memset and memcpy loops for better performance Reallocate ARM RAM - out of RAM for C but have unused RAM in Display Data? This shows how to adjust the amount allocated to each. 1 Link to comment Share on other sites More sharing options...
Recommended Posts