Hi Pekka, thanks for your input.
> Of course, some care is needed to make sure that the compiler does the right > thing. > It is relatively easy to break the pattern. I see your point, but actually, I don't want to build a whole system model based on any assumption about what the compiler might optimize. Without testing I'm pretty sure that you're right and an up-to-date version of GCC is able to optimize static function pointers, but we don't know which weird compilers on some esoteric hardware platform might be used for RIOT somewhere sometime, so I rather rely on optimized C code than on optimized compilers. Cheers, Oleg -- The four hard things in CS are cache invalidation, naming, and off-by-one errors.
pgpuXrBOHbMyR.pgp
Description: PGP signature
_______________________________________________ devel mailing list devel@riot-os.org http://lists.riot-os.org/mailman/listinfo/devel