News for hackers. Stuff that matters.
Re:C++ on Embedded Systems by shortoncash on Monday February 20, 2017 @09:25PM (#13692744)
Valid point.

However, there's no reason it has to be overly manual. As an example, you can make all the global object classes mixins for a variadic and use a variadic constructor and member methods to bring them all online in one fell swoop, even parameterizing construction via policy classes as template parameters. (Plus you have the added benefit of knowing via sizeof() on the variadic type the footprint of all the global objects.)

The gain would be to avoid the dependence on the linker script solution, particularly if tweaking linker scripts on a different compiler/build environments.

There are no comments on this comment yet.