C
CBFalconer
cr88192 said:.... snip ...
the standard explains more than a few things, but stops well short
of a complete explanation (for example, of the exact calling
conventions, data representations, ... employed by an architecture,
which may be particularly relevant for more involved projects).
Bad idea. That immediately makes your code non-portable.
another approach (though better when combined with the standards,
so one knows more what is and is not standard) is to take some
specific implementation (say, gcc), and using this as a general
reference implementation ('how things work' and similar questions).
this is generally what I have done. how and what is done in gcc is
something I personally find particularly relevant to my own efforts.
Another bad idea, again leading to non-portable code. Isolate
anything that really has to be non-portable in a separate file, so
as to limit the rework needed during a port.