frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Decode Decoded

https://zhebrak.io/posts/decode-decoded/
1•speckx•1m ago•0 comments

Show HN: POSIX-UEFI

https://gitlab.com/bztsrc/posix-uefi
1•skrellm•1m ago•0 comments

The Future of Knowledge Inside the Enterprise

https://philippdubach.com/posts/future-of-knowledge-inside-the-enterprise/
1•7777777phil•2m ago•0 comments

The Canada-US border runs through a 1904 library's reading room

https://pub-a941bfd863a24f91a60e6c4979c18a84.r2.dev/pi-sandbox-uploads/364168757079183360/2026-10...
1•offthemapalex•2m ago•0 comments

Show HN: Karotte, a framework for building robust RL envs

https://github.com/preferencemodel/karotte
1•256•2m ago•0 comments

The Surface Laptop Ultra coming on Oct 16 – and a starting price of $2,599

https://www.theverge.com/news/1006378/microsoft-surface-laptop-ultra-pricing-release-date
1•utiiiD•2m ago•0 comments

Using real shadows to make a video game

https://www.instagram.com/reel/DeB5R7DhJjC/
1•stared•3m ago•1 comments

A tool to extract the text from Bill Gates' The Road Ahead companion CD-ROM

https://github.com/kevinmmccormick/road-behind
1•kevinmmccormick•3m ago•1 comments

Funding the AI revolution: evidence from euro area sectors

https://www.ecb.europa.eu/press/blog/date/2026/html/ecb.blog20261006~35bf3c24cb.en.html
1•giuliomagnifico•4m ago•0 comments

Wiley agrees to 50-50 split with Dummies authors in Anthropic settlement

https://bsky.app/profile/victoriastrauss.com/post/3mwwcap7os22x
1•ilamont•5m ago•0 comments

Claude Haiku 5.5

https://twitter.com/claudeai/status/2107894039626277339
3•denysvitali•6m ago•0 comments

Claude Haiku 5.5

https://www.anthropic.com/claude-haiku-5-5
37•sfkgtbor•6m ago•7 comments

Show HN: getrequest – Never lose an API request

https://www.getrequest.io/
1•santoshbaggam•6m ago•1 comments

Running Inkling (975B) Across Eleven Intel AI PCs

https://arxiv.org/abs/2610.07219
1•jackwsmth•6m ago•0 comments

GPT‑6 and Intelligent UI for everyone

https://openai.com/index/gpt-6-for-everyone/
3•joshuawright11•6m ago•0 comments

Apple's screen time API is broken

https://medium.com/@tnrich/3-things-i-wish-apple-would-fix-in-the-screen-time-api-25607fac8aca
1•tnrich•7m ago•0 comments

Show HN: Convkit – A command line tool for converting images/video/docs offline

https://github.com/shdwfruit/convkit
1•shdwfruit•8m ago•0 comments

In Vienna and Beijing, the First (Thorium) Nuclear Clocks Begin to Tick

https://www.nytimes.com/2026/10/07/science/first-nuclear-clocks-thorium-229.html
1•gumby•8m ago•0 comments

Oscar-winning actress Eva Marie Saint dies aged 102

https://www.bbc.com/news/articles/cqze43ky1xgdo
2•haunter•8m ago•0 comments

Curious bug where cfpm CLI commands may fail unexpectedly, tracker ticket filed

https://www.carehart.org/blog/2026/10/2/cfpm_cli_bug_due_to_spaces
1•speckx•9m ago•0 comments

Fabrice Bellard: The Ghost in the Code

https://zbruceli.org/blog/the-ghost-in-the-code/
3•ptidhomme•10m ago•0 comments

Claude Haiku 5.5

https://platform.claude.com/docs/en/models/haiku-5-5/overview
5•denysvitali•11m ago•0 comments

No new Ghostty updates since March

https://github.com/ghostty-org/ghostty/tags
4•zatkin•17m ago•0 comments

Artifact Arena: Making is the measure of intelligence

https://artifactarena.ai
5•dmayo•17m ago•0 comments

Boredom is Life: a brief excerpt from the new book "You Don't Need A Smartphone"

https://augustlamm.substack.com/p/boredom-is-life
2•thoughtpeddler•17m ago•0 comments

Bringing Back the Dead Programs

https://siberiancat467109.substack.com/p/bringing-back-the-dead-programs
1•siberiankot•18m ago•0 comments

We're 'an intelligence organization now': Inside USA Today's Palantir deal

https://www.fastcompany.com/91608398/usa-today-palantir
3•johnshades•19m ago•0 comments

Docker Agent

https://github.com/docker/docker-agent
3•saikatsg•19m ago•0 comments

FICO cuts workforce by 15% in AI-driven restructuring

https://www.reuters.com/business/world-at-work/fico-cuts-workforce-by-15-ai-driven-restructuring-...
4•frank_clover•22m ago•0 comments

Sizing Up SMRs: Assessing U.S.-China Tech Competition in Small Modular Reactors

https://scsp222.substack.com/p/introducing-sizing-up-smrs-assessing
1•johnshades•22m 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).