TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Using the __cleanup__ variable attribute in GCC

24 点作者 bleakgadfly将近 10 年前

4 条评论

castratikron将近 10 年前
I learned about this a few years ago, but haven't made use of it at all. But I can see how it could be handy. I like using the vector attribute to make gcc generate vector instructions.
buserror将近 10 年前
Actually this is pretty cool, you can make the same sort of semantics as C++ stack based objects in plain C. With a couple macros you could make it pretty much feature equivalent.<p>Thanks for posting that!
评论 #10061080 未加载
评论 #10061462 未加载
saisi将近 10 年前
Pretty cool.<p>Does anyone have recommendations on great books that cover advanced C internals (other than K&amp;R) and&#x2F;or GNU extensions for C?
评论 #10128537 未加载
revelation将近 10 年前
Or, you know, just use C++ if you want to do this.<p>No worries, it doesn&#x27;t hurt, you won&#x27;t have to use iterators and new.
评论 #10063432 未加载