logoalt Hacker News

gizmo686today at 4:17 AM1 replyview on HN

Even programs are just specifications by that standard. When you write a program in C, you are describing what an abstract C machine can do. When the C compiler turns that into a program it is free to do so in any way that is consistent with the abstract C machine.

If you look at what implementions modern compilers actually come up with, they often look quite different from what you would expect from the source code


Replies

notepad0x90today at 4:23 AM

I don't disagree, so in a way, compilers are the specification that implement the standard? That doesn't feel right though.

show 1 reply