![]() The Free Software Foundation either version 3 of the License, orĬhibiOS/RT is distributed in the hope that it will be useful,īut WITHOUT ANY WARRANTY without even the implied warranty of It under the terms of the GNU General Public License as published by #STM8 COSMIC. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You also have to specify -mlong-calls as GCC option and mark the functions you want in RAM like this: _heap_end_ = _ram_end_ - _stacks_total_size_ You should have received a copy of the GNU General Public License GNU General Public License for more details. I cobbled a simple benchmark: basically two different functions: a short simple loop that did little more than toggle one of the LEDs and a slightly longer one that intentionally jumped around a bit in addition to toggling the same LED. Every so often the loop expired, and the pushbuttons were read. This way more than one function could be tried for each compile cycle. ![]() The GCC docs allude to possibly optimizing calls to be short when the jump distance is small enough - it clearly wasn't doing this, as noted by inspecting the listing files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |