On 20/11/2021 22:24, Gedare Bloom wrote:
Not super important, but this many arguments are probably going to
pass through the stack in pretty much any ISA (except maybe sparc). At
some point it may be worth refactoring these_Scheduler_  calls to pass
a structure of the operations by pointer instead of as individual
arguments to reduce the overhead of spilling/filling args to stack
frames. Just a random thought, maybe some kind  of
Scheduler_SMP_Operations;

If you enable the compiler optimization, then these functions are not called via function pointers. These functions are all "static inline" and the compiler sees them all in the translation unit. It will expand all the code and optimize it.

--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to