frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Elephant-Goldfish Model (EGM)

https://github.com/google/elephant-goldfish-model
1•qainsights•36s ago•1 comments

Ask HN: Has a Software Engineering Career Lost a Lot of Respect?

1•karakoram•58s ago•0 comments

A neat trick I found for reusing physical memory

https://sebsite.pw/w/20260728-cow.html
1•ibobev•1m ago•0 comments

Day 2000 Doesn't Care How Fast You Shipped

https://www.syntasso.io/post/day-2000-doesn-t-care-how-fast-you-shipped
1•danielbryantuk•1m ago•0 comments

Ptrc: A pure integer framework for 100% deterministic generative art

https://github.com/GKW369/p-adic-takt-resonance-cosmology
1•GKW369-156•2m ago•0 comments

Image Blocks

https://glfmn.io/devlog/2026-10-23/
1•ibobev•3m ago•0 comments

Malaria Parasite Caught in the Act of Breaking and Entering

https://www.quantamagazine.org/malaria-parasite-caught-in-the-act-of-breaking-and-entering-20261023/
1•ibobev•3m ago•0 comments

Show HN: The Only Weather App You'll Ever Need

https://weatherhubapp.com/
1•15cats7•4m ago•1 comments

Benchmarking Multimodal Agents for Robot Use Across Diverse Tasks, Embodiments

https://arxiv.org/abs/2610.10409
1•devy•5m ago•0 comments

Choosing Addiction Treatment in New Jersey: What Families Should Know in 2026

https://www.northjersey.com/story/special/contributor-content/2026/10/05/choosing-addiction-treat...
2•rollinghillsnj•7m ago•0 comments

A Golden Age of Science Brought to You by the WH (Tyler Cowen Interview)

https://www.nytimes.com/2026/10/22/opinion/interesting-times-tyler-cowen-michael-kratsios.html
2•atlasunshrugged•7m ago•0 comments

Unstructured's New Models Outparse GPT-6, Claude and Gemini

https://unstructured.io/blog/unstructured-transform-faster-more-accurate-for-your-hardest-documents
1•lmarol12•7m ago•0 comments

Why a world without friction is a world without progress

https://aeon.co/essays/why-a-world-without-friction-is-a-world-without-progress
2•ersinesen•9m ago•1 comments

Dagger 1.0 Beta

https://dagger.io/blog/dagger-10-beta/
3•shykes•9m ago•0 comments

LLM Multi-Agent Systems Are Vulnerable to Herding and Runaway Cascades

https://arxiv.org/abs/2610.30769
1•ersinesen•11m ago•0 comments

Preliminary report on H5N1 highly pathogenic avian influenza in Utah mink

https://virological.org/t/preliminary-report-on-h5n1-highly-pathogenic-avian-influenza-in-utah-mi...
2•Guid_NewGuid•11m ago•0 comments

Show HN: Ts-polyglot – Call C/C++ or Rust functions directly from TypeScript

https://ts-polyglot.dev
1•emykhailenko•13m ago•0 comments

We gave an AI $100k to trade on leverage. Here's what it did

https://twitter.com/DeployFinance/status/2113642187074195945
1•bsv_gtd•14m ago•0 comments

Reforming English Spelling

https://blog.oup.com/2026/10/reforming-english-spelling/
1•jruohonen•17m ago•0 comments

We found 20 users within the first 10 minutes of launching using our own site

https://heardly.io/
1•samuelalubin•18m ago•0 comments

Ask HN: How do you get AI loops to converge?

2•outlore•18m ago•1 comments

Ruby RegEx could lead to RCE

https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/
2•arlattimore•19m ago•0 comments

Cloudflare Is Having Issues

https://www.cloudflarestatus.com/incidents/sufgcbe8rrwt
5•palmeida•20m ago•0 comments

Agents fail like engineers, so I review them like engineers

https://blog.greenflagged.dev/posts/agents-fail-like-engineers/
5•Azkar•20m ago•0 comments

Show HN: Tagwall, a 1M-pixel canvas on 6 blockchains with no owner

https://tagwall.io
1•tagwall•20m ago•0 comments

Show HN: Anyone else frustrated with mermaid diagrams?

https://github.com/uberblick-ai/ablauf
1•bk-one•21m ago•0 comments

Show HN: A small audit script and config notes for the new PHP CVEs

https://github.com/mc493/php2shell-enterprise-hardening-cve-2026-109618-109619
1•mc493•22m ago•0 comments

Local AI Is Not as Private as You Think [video]

https://www.youtube.com/watch?v=3mx84MRj8lY
1•onemoresoop•23m ago•0 comments

XHToken/Spark-X2.6-4B

https://huggingface.co/XHToken/Spark-X2.6-4B
3•gmays•25m ago•0 comments

Moreutils: The utilities package every Unix/Linux/Mac OS developer should know

https://rentes.github.io/unix/utilities/2015/07/27/moreutils-package/
2•jcbhmr•27m ago•0 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•1y 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•1y 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•1y 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).