a while back, someone asked, "why isn't there a way in C to tell if my code is optimized?" thankfully, we can implement this as a library function
Conversation
Notices
-
Embed this notice
Joe Groff (joe@f.duriansoftware.com)'s status on Thursday, 19-Sep-2024 06:08:16 JST Joe Groff
-
Embed this notice
Vegard Nossum 🥑 (vegard@mastodon.social)'s status on Thursday, 19-Sep-2024 19:20:21 JST Vegard Nossum 🥑
@joe This program detects optimization level: https://gcc.godbolt.org/z/G956WzrrE
Haelwenn /элвэн/ :triskell: likes this. -
Embed this notice
Haelwenn /элвэн/ :triskell: (lanodan@queer.hacktivis.me)'s status on Thursday, 19-Sep-2024 19:23:08 JST Haelwenn /элвэн/ :triskell:
@vegard @joe Well with the optimize attribute it's less tricky to understand. In conversation permalink
-
Embed this notice