frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Kim – Keep in Mind

https://pratikwayal01.github.io/kim/
1•ankitg12•1m ago•0 comments

Welcome to the busiest month in the domain business

https://domainnamewire.com/2026/08/04/welcome-to-the-busiest-month-in-the-domain-business/
1•taubek•5m ago•0 comments

Proven: Six Checks Against AI Slop

https://blog.bensoussan.de
1•davidbensoussan•7m ago•1 comments

What I love about Django

https://buttondown.com/blog/what-i-love-about-django
2•j4mie•16m ago•0 comments

The German Mittelstand

https://kieranvelasquez.substack.com/p/on-the-german-mittelstand
2•Michelangelo11•17m ago•0 comments

Show HN: HackerBa – Hacker News with a Baidu Tieba UI

https://github.com/sha2kyou/HackerBa
2•sha2kyou•23m ago•0 comments

Ask HN: How do you handle iOS app submissions?

1•tedmundy•24m ago•1 comments

Suggestions on how to develop a tech recruitment platform using Claude?

1•zerodollar•24m ago•2 comments

Context Engineering in an LLM Harness

https://udnes.dev/posts/context-engineering-harness-part-1-ontology/
2•udnes•24m ago•0 comments

Mark Zuckerberg Blasts Centralization of A.I. Power

https://www.nytimes.com/2026/07/28/technology/mark-zuckerberg-meta-ai.html
1•danielcallahan•27m ago•0 comments

Show HN: Clark code – open-source IDE for OSS coding and free tier

https://github.com/clark-labs-inc/clark-code
1•stan_kirdey•27m ago•1 comments

The Code Review Paradox

https://dromeas.ai/blog/pr-vs-trunk-what-code-review-actually-looks-like
1•manos-saratsis•27m ago•1 comments

AMD Instinct Coder

https://www.amd.com/en/ecosystem/oem/supermicro/amd-instinct-coder.html
2•narism•28m ago•0 comments

Test

https://www.google.com/
1•snikolaev•28m ago•1 comments

The Three-Stroke Problem

https://penpot.app/blog/the-three-stroke-problem/
2•elenathor•33m ago•0 comments

How can a junior dev get better when they have to use AI in their job?

1•yogesharc•35m ago•5 comments

Finding the right price for a weather API

https://www.meteosource.com/blog/weather-api-pricing
1•Thunder_rumbles•37m ago•0 comments

Kikuha – A privacy-first, zero-tracking social network built with Flask and Htmx

https://kikuha.com/
2•koniakAra•45m ago•0 comments

Grokipedia stopped updating three months ago

https://www.lawfaremedia.org/article/grokipedia-stopped-reviewing-edits-in-april.-it-didn-t-tell-...
2•BlueBerry2001•47m ago•0 comments

Servers can be backdoored by exploiting buggy motherboard controll

https://arstechnica.com/security/2026/08/thousands-of-servers-can-be-backdoored-by-exploiting-bug...
2•joozio•48m ago•0 comments

Fedora Approves a Smaller Grub

https://lwn.net/Articles/1085609/
2•pykello•52m ago•0 comments

A Vision for Cargo

https://epage.github.io/blog/2026/08/cargo-vision/
1•ingve•53m ago•0 comments

Mathematicians make a breakthrough on Gauss's riddle, unsolved for 200 years

https://www.scientificamerican.com/article/mathematicians-make-a-breakthrough-on-gausss-riddle-un...
1•pykello•53m ago•0 comments

For Chinese LLMs, do you care about mainland-hosted vs. overseas endpoints?

https://api.realitypatch.net/
1•yangzhou-tech•56m ago•0 comments

Meta's Mac Coding Agent Costs Up to 20x Less If You Let It Train on Your Data

https://www.macrumors.com/2026/08/05/meta-muse-code-for-mac/
1•thm•58m ago•0 comments

Journey to Robbers Cave – Behavioral Scientist

https://behavioralscientist.org/journey-to-robbers-cave/
2•pulkonet•59m ago•0 comments

I built a postpartum recovery app after reading many stories from new mothers

https://play.google.com/store/apps/details?id=com.matrabloom.app&hl=en_IN
1•rahulsinghhh•1h ago•0 comments

Obsidian debuts Airtable to local Markdown file importer rescue tool

https://obsidian.md/help/import/airtable
1•thoughtpeddler•1h ago•0 comments

Dissection of Flock Safety Camera

https://www.cehrp.org/dissection-of-flock-safety-camera/
1•sandebert•1h ago•0 comments

Let's all meet up in the Y2K

https://blog.gingerbeardman.com/2026/08/06/lets-all-meet-up-in-the-y2k/
5•msephton•1h 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).