Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
actionfromafar
6 months ago
|
parent
|
context
|
favorite
| on:
Show HN: My C compiler compiled itself
No, gcc optimizes code output and can make code shorter and faster. A compiler can make many, many decisions which will show up as differences in the binary output.
mizzao
6 months ago
[–]
In my question above, both compilers are 30cc, except one of the 30cc's was compiled by gcc and the other self-hosted.
actionfromafar
6 months ago
|
parent
[–]
Ah, sorry. In that case, my guess is, probably yes. The outputs of both of these are probably the same. But not for certain - see:
https://www.cs.cmu.edu/~rdriley/487/papers/Thompson_1984_Ref...
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: