3 ms·
you could confidently predict what a given compiler would generate, for a given platform But then you're no longer writing Standard C. You're writing compiler-
by tremon 4y ago
you could confidently predict what a given compiler would generate, for a given platform
But then you're no longer writing Standard C. You're writing compiler-flavoured C, which is another source of footguns for projects that outlive the compiler (or version) they were originally written for. Which is fine, as you say, for embedded-style projects that only target one processor model and one compiler version. But I don't think that applies to many of today's projects.
- deleted 4y ago[deleted]
- marssaxman 4y ago> But then you're no longer writing Standard C. Well, of course not - it didn't exist yet! Or, if it existed, your compiler didn't support it yet; or, even if you had upgraded to a newer compiler which did support it (not a given back then), your codebase and development style preceded the standard, so you continued in the existing style.