a detailed guide would be appreciated
a detailed guide would be appreciated
I think the detailed guide would be "write code that doesn't care about the architecture".
If you're doing something low-level enough that it matters about the architecture, then you already know what the impact will be.
Are you writing an operating system or device driver? If not, you need not concern yourself with this.