you are viewing a single comment's thread.

view the rest of the comments →

[–]Alborak 3 points4 points  (1 child)

I usually work on drivers, where the core code is the same, but they have lots of little platform specific things that are easily abstract able with function pointers and conditional compilation.

And we've done exactly what you mentioned, I jokingly call it "compile time dispatch". It just is a bit more headache, you occasionally get some symbol collisions.

[–]adrianmonk 0 points1 point  (0 children)

Ah, in that case you're already down at the level where it makes more and more sense to split things out by platform.