Hacker News new | past | comments | ask | show | jobs | submit login

> There’s nothing preventing GCC from having different inlining/outlining heuristics as well as different cost models for versioning based on target.

Does it actually have that different logic? Because otherwise this sounds like that tired "nothing prevents the compiler to be arbitrarily smart" argument — sure, nothing prevents that except for the fact that someone has to actually implement this smartness.




I know that llvm has different logic.

I know that every compiler that I’ve ever written ends up having different logic for this based on target, for a myriad of complex reasons.

So I would assume GCC landed in the same place as anyone writing a complex compiler.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: