TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Using the __cleanup__ variable attribute in GCC

24 pointsby bleakgadflyalmost 10 years ago

4 comments

castratikronalmost 10 years ago
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.
buserroralmost 10 years ago
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 未加载
saisialmost 10 years ago
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 未加载
revelationalmost 10 years ago
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 未加载