If found that for each event there are functions for create, destroy and cleanup generated. At least for my target they have a significant impact on the code size.
Is there a way to have those events statically defined? I found a property for Events, called "EnableDynamicAllocation". When I disable it some functions disappear, there is still a call to the cleanup function resulting in a compiler error.
Does anyone know if events can be statically defined and how to use this property correctly?