© John T. Taylor, Wayne T. Taylor 2021
J. T. Taylor, W. T. TaylorPatterns in the Machinehttps://doi.org/10.1007/978-1-4842-6440-9_13

13. More About Late Binding

John T. Taylor1   and Wayne T. Taylor2
(1)
Covington, GA, USA
(2)
Golden, CO, USA
 

As discussed earlier, one form of late binding is compile time binding. This is an abstraction technique that allows you to create different flavors of your project based on compile time settings. While it does add some additional complexity to the structure of your header files and build scripts, it also provides a reliable way to cleanly automate building multiple variants of your binary.

Two patterns that you can implement in your code to facilitate building different versions are LHeader and LConfig.

LHeader ...

Get Patterns in the Machine: A Software Engineering Guide to Embedded Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.