|
|
|
|
|
by rkangel
3505 days ago
|
|
> C isn't just a formal specification No, C IS just a formal specification. What you are talking about is C on your particular compiler on your particular platform. If you are writing C code just to be used for that scenario then you can use all of the implementation understanding you want. If, however, you want to write C that will have consistent behaviour across multiple compilers and multiple platforms, then you need to limit yourself to the behaviours that the standard guarantees. Otherwise the compiler behaviour may change and your program behaviour will change. Even between different versions of the same compiler implementation defined behaviour can change (although assumptions about sizes probably won't). |
|