Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce compiled assembly size reduction for embedded targets #2

Open
ghost opened this issue Jul 26, 2019 · 2 comments
Open

Reduce compiled assembly size reduction for embedded targets #2

ghost opened this issue Jul 26, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 26, 2019

The assembly generated with -Os has Rtti and IOstream elements that cannot beremoved without modification to Sub0Pub.hpp

minimal version of sub0pub is were removed in experiment on code-explorer here:
https://godbolt.org/z/Ct3aFD

Note: Rougly 4- assembly instructions per subsequent subscriber the the same signal

@ghost ghost changed the title Compiled assembly size reduction for embedded targets Reduce compiled assembly size reduction for embedded targets Jul 26, 2019
@ghost
Copy link
Author

ghost commented Jul 26, 2019

Primarily:

  • Create minimal example wihtout std::cout messages
  • Make typeinfo usage optional
  • Explicit include isteam and ostream instead of iostream
  • virtual ~Subscribe() unecesary as shall not be deleted from subscription
  • CheckT assert/exception debugging options not removed at compile time

@ghost
Copy link
Author

ghost commented Aug 1, 2019

Minimal example created in #3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants