frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•9mo ago
I'd like to do some statistics over the machine code gcc generates, such as a histogram of used instructions, average volatile/preserved registers usage of functions etc. For now just x86_64 SysV-ABI would be enough.

However I'm not aware of any pre-existing tool that lets me easily do this. The options I currently see are either make gcc output assembly and write a parser for the GNU Assembler format (possibly by reusing the asm-parser of the compiler-explorer project), or write a tool that reads (disassembles) object files directly using elfutils.

Any hints, prior work, further ideas, links to useful resources, or any other kind of help would be much appreciated.

Comments

baobun•9mo ago
"Static analysis" should be a relevant search term. Assuming you don't need to tie the instructions back to C code then the "gcc" part seems circumstancial for implementation? I guess you might want to parse the ASM into an Abstract Syntax Tree (AST) represenation and work on that?

If you do want to tie it back to the source, this looks relevant: http://icps.u-strasbg.fr/~pop/gcc-ast.html

phafu•9mo ago
For my purpose I don't need to get back to the original source, no.

The gcc part is only relevant with regards to what dialect of assembler I need to parse. If I go that route, I'd write a parser for the GNU assembler, and that would of course work with any code in that dialect, regardless from which compiler it came from (I haven't checked whether other compilers can produce GNU assembler though).

Getting Started with GetUserMedia in 2026

https://blog.addpipe.com/getusermedia-getting-started/
1•octavn•23s ago•0 comments

Strengthening Windows trust and security through User Transparency and Consent

https://blogs.windows.com/windowsexperience/2026/02/09/strengthening-windows-trust-and-security-t...
1•pjmlp•1m ago•0 comments

Generate product insights by giving your AI agent DB access and app source code

https://teotti.com/generate-product-insights-with-ai-agent-db-mcp-and-app-sourcecode/
1•agenteo•1m ago•1 comments

Did HN just censor the Resist and Unsubscribe story?

https://www.resistandunsubscribe.com
1•mark_l_watson•2m ago•1 comments

Zvec: SQLite-like simplicity in an embedded vector database (By Alibaba)

https://zvec.org/en/
1•sh_tomer•2m ago•0 comments

AppSecMaster – Hack / Secure web applications

https://www.appsecmaster.net/en
1•aqeisi•3m ago•1 comments

Licensed Fine-Tuning Data for Domain-Specific LLMs (Opendatabay.com)

https://www.opendatabay.com
1•ibnzUK•3m ago•0 comments

Archive.today CAPTCHA page executes DDoS; Wikipedia considers banning site

https://arstechnica.com/tech-policy/2026/02/wikipedia-might-blacklist-archive-today-after-site-ma...
1•Archelaos•3m ago•0 comments

Faster and Cheaper Computations with Randomized Numerical Linear Algebra

https://arxiv.org/abs/2601.15473
1•PaulHoule•3m ago•0 comments

Show HN: Lore – Cross-Agent Memory SDK (Python and TypeScript)

https://github.com/amitpaz1/lore
1•amit_paz•4m ago•0 comments

From 3 Minutes to 7.8 Seconds: Improving on RocksDB performance

https://blog.serenedb.com/
2•mkornaukhov•4m ago•0 comments

AI spurs employees to work harder, faster, and with fewer breaks

https://www.theregister.com/2026/02/11/ai_makes_employees_work_harder/
1•pseudolus•4m ago•0 comments

Anthropic Puts $20M into a Super PAC to Counter OpenAI

https://www.nytimes.com/2026/02/12/technology/anthropic-super-pac-openai.html
1•jbegley•8m ago•0 comments

America's Cyber Defense Agency Is Burning Down and Nobody's Coming to Put It Out

https://www.threathunter.ai/blog/americas-cyber-defense-agency-burning-down/
1•bourbonsec•9m ago•0 comments

Show HN: Mail Server Builder – Deploy a Full Mail Server on Ubuntu from Windows

https://buy-source-code.com/apps/mail-server-builder/
1•tungkaiying•10m ago•0 comments

Assessment of adverse effects attributed to statin therapy in product labels

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(25)01578-8/fulltext
1•bookofjoe•10m ago•0 comments

Kludge (The Jargon File v4.4.7)

http://www.catb.org/~esr/jargon/html/K/kludge.html
1•shirian•11m ago•0 comments

20 Years of Varnish: A Cloud-Native Distribution (In-Core TLS, K8s Gateway API)

https://info.varnish-software.com/blog/20-years-of-varnish-cache-the-new-cloud-native-distribution
1•ruben_varnish•12m ago•1 comments

Employee Monitoring and SimpleHelp Software Abused in Ransomware Operations

https://www.huntress.com/blog/employee-monitoring-simplehelp-abused-in-ransomware-operations
1•campuscodi•12m ago•0 comments

Searching for Birds: Concept, analysis, design, and development

https://SearchingForBirds.VisualCinnamon.com/
2•fittingopposite•12m ago•0 comments

The "Crown of Nobles" Noble Gas Tube Display

https://theshamblog.com/the-crown-of-nobles-noble-gas-tube-display/
7•Ivoah•13m ago•0 comments

Show HN: Hacker News Available on WhatsApp

https://www.whatsapp.com/channel/0029VbBKz0XEAKWKMhK32V1c?_fb_noscript=1
1•dxone•13m ago•0 comments

Ask HN: Surveyed 218 entrepreneurs on burnout – 92% overwhelmed monthly

2•differentdima•15m ago•0 comments

Younger Firms and CEOs Allow More Work from Home

https://www.nber.org/papers/w34795
1•PretzelFisch•16m ago•0 comments

The Physics That Makes Interstellar Travel Impossible [video]

https://www.youtube.com/watch?v=Yw68KjMa5U8
1•caustic•17m ago•1 comments

Show HN: Self-Integrating AI Agent

https://github.com/membranehq/self-integrating-agent-example
1•hcle25•18m ago•0 comments

Multi-OpenClaws with MemOS Plugin share memory and achieve great teamwork

https://twitter.com/MemOS_dev/status/2020538135487062094
1•MemTensor•20m ago•1 comments

Cursor: Composer 1.5

https://cursor.com/blog/composer-1-5
1•tosh•21m ago•0 comments

Show HN: Camera Follow Focus Ring Generator

https://www.followyourfocus.xyz/
2•dRuivo•21m ago•0 comments

Show HN: CasNum – A GameBoy ALU using only compass-&-straightedge constructions

https://github.com/0x0mer/CasNum
1•0x0mer•21m ago•0 comments