frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•11mo 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•11mo 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•11mo 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).

CUDA Programming for Nvidia H100s

https://www.freecodecamp.org/news/cuda-programming-for-nvidia-h100s/
1•eigenBasis•4m ago•0 comments

MacBook Neo vs. MacBook Air: Which One Should You Buy?

https://www.wired.com/story/macbook-neo-vs-macbook-air/
1•joozio•5m ago•0 comments

Show HN: Uptime monitoring is table stakes

https://exit1.dev/
1•m_prads•5m ago•0 comments

Apache 2.4, ETag values, and (HTTP) response compression

https://utcc.utoronto.ca/~cks/space/blog/web/Apache24EtagAndSuffixes
1•DamonHD•8m ago•0 comments

Cold Diffusion from Scratch

https://github.com/aldipiroli/cold_diffusion_from_scratch
1•tgnk2341•10m ago•0 comments

Warranty Void If Broken? How to Keep Your Rights After Self-Repair

https://holdmybill.com/blog/warranty-void-if-broken-seal-your-rights-self-repair
1•niksmac•10m ago•0 comments

Ask HN: Do you trust AI agents with API keys / private keys?

3•devendra116•10m ago•0 comments

All Your Memory in a Grid

https://my-grid-week.netlify.app/
1•sherlockj•11m ago•0 comments

Frozen 14B model on $800 Mac Mini improves itself autonomously, no cloud

https://zenodo.org/records/19530926
2•farahcjaber•12m ago•0 comments

The AI Layoff Trap

https://arxiv.org/abs/2603.20617
2•the-mitr•13m ago•0 comments

Why the Grand Paris Express Is Europes Biggest Infrastructure Project [video]

https://www.youtube.com/watch?v=c_iuctRkmp0
1•ciconia•18m ago•0 comments

I tested 10k VPNs – 67% leak your data

https://medium.com/@examineip/i-built-a-free-vpn-leak-test-tool-heres-what-10-000-tests-revealed-...
1•examineip•25m ago•0 comments

Frugal AI for Education

https://www.col.org/frugal/
2•the-mitr•30m ago•0 comments

FIXAPL

https://fixapl.netlify.app/
1•tosh•30m ago•0 comments

Put Down Your Phone and Embrace Bookish Snobbery

https://thatvastvariety.substack.com/p/my-notes-on-amusing-ourselves-to
1•barry-cotter•35m ago•0 comments

Native Raspberry Pi Version of the Oberon System 3

https://github.com/rochus-keller/OberonSystem3Native/releases/tag/2026-04-10
1•xkriva11•39m ago•0 comments

Snorb.lol

https://snorb.lol
1•numtel•39m ago•1 comments

A brief history of C/C++ programming languages

https://lemire.me/blog/2026/04/09/a-brief-history-of-c-c-programming-languages/
1•signa11•42m ago•0 comments

Code Mode: Let Your AI Write Programs, Not Just Call Tools

https://tanstack.com/blog/tanstack-ai-code-mode
2•nilsbunger•46m ago•0 comments

Science Communication and the Hype Machine

https://cognitivewonderland.substack.com/p/science-communication-and-the-hype
1•paulpauper•49m ago•0 comments

CDC director delays report showing Covid vaccine benefits

https://www.theguardian.com/us-news/2026/apr/10/cdc-chief-covid-vaccine
5•iamflimflam1•52m ago•0 comments

Silicon Valley is quietly running on Chinese open source models

https://old.reddit.com/r/Futurology/comments/1siea6z/silicon_valley_is_quietly_running_on_chinese...
2•nreece•53m ago•1 comments

April 12th is Yuri's Night

https://yurisnight.net/
2•anonymousiam•1h ago•0 comments

Show HN: I visualized how AI agent systems accidentally become org charts

https://jointherevolution.today/emergence
2•bhaviav100•1h ago•0 comments

I run multiple $10K MRR companies on a $20/month tech stack

https://stevehanov.ca/blog/how-i-run-multiple-10k-mrr-companies-on-a-20month-tech-stack
4•tradertef•1h ago•1 comments

Behind the Scenes of the Demise of Muxtape (2008)

https://www.wired.com/2008/09/behind-the-scenes-of-the-demise-of-muxtape/
1•greyface-•1h ago•0 comments

Intel Arc Pro B70 Brings 32GB VRAM to Local AI for $949

https://awesomeagents.ai/news/intel-arc-pro-b70-32gb-local-inference/
1•walterbell•1h ago•0 comments

Combatting illegal trade of wildlife with ML and radiation technologies

https://www.mdpi.com/2076-2615/16/5/731
1•DrZootron•1h ago•0 comments

Graft – Go AI Agent Framework with Temporal/Hatchet/Trigger.dev Support

https://github.com/delavalom/graft
2•delavalom•1h ago•0 comments

India's TCS tops estimates, says new AI models did not dent services demand

https://www.reuters.com/world/india/indias-tcs-beats-fourth-quarter-revenue-view-2026-04-09/
1•dartharva•1h ago•0 comments