frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

CoW B+ Trees are Fun

https://nubskr.com/2026/11/29/nubSQL/
1•nubskr•2m ago•0 comments

Bitter Lesson

https://en.wikipedia.org/wiki/Bitter_lesson
1•thunderbong•2m ago•0 comments

A Snake's Movement [video]

https://www.youtube.com/watch?v=rYzaX4cp6_A
1•pvaldes•2m ago•0 comments

Show HN: Building 1M+ RPS Distributed Engines in Go and Rust

https://github.com/grfdsasdvef/awesome-highload-architecture
1•snowdensay•7m ago•0 comments

Idk I build a extension that stop Twitter X from loading new posts without askin

https://github.com/renlesss/OnDemand-for-X
1•renless•11m ago•0 comments

Tell HN: It's 2046. I am one of the legendary programmers who coded by hand. AMA

1•andrewstuart•13m ago•1 comments

What it’s like to be told AI wrote your story

https://www.cnn.com/2026/11/29/africa/simbarashe-kundizeza-caine-prize-ai-controversy-cec
1•ChrisMarshallNY•16m ago•0 comments

YouTube Drums [video]

https://www.youtube.com/watch?v=8IJx6rl9he8
1•convict•25m ago•0 comments

Krenov's Hand Planes

https://www.thekrenovfoundation.org/krenov100/hand-planes
1•tosh•25m ago•0 comments

French computer museum Aconit could dissapear

https://france3-regions.franceinfo.fr/auvergne-rhone-alpes/isere/grenoble/2700-ordinateurs-et-mac...
2•zoobab•26m ago•0 comments

Has AI just cracked Internet encryption? Rumoured 'bombshell' stuns scientists

https://www.nature.com/articles/d41586-026-03875-6
3•DitheringIdiot•31m ago•2 comments

Tw-origin/tw-framework has 138,819 lines of code – SLOC report by OctoCounts

https://octocounts.com/github/tw-origin/tw-framework/commit/ec95dc862aa34cdacae455087ab813482f3fb...
1•tw_mrmk•33m ago•0 comments

Thomas L. Friedman author talks of AI as a "new species." [video]

https://www.youtube.com/shorts/6pZeJ0ZUz2I
1•rbanffy•33m ago•0 comments

Google Antigravity ACP using "custom-agent" consumes 4x quota per token

https://github.com/google-antigravity/antigravity-cli/issues/1890
2•bloopernova•36m ago•0 comments

Minimum Square Partridge Packing with MiniZinc

https://zayenz.se/blog/post/minimizing-partridge-packing/
1•mzl•39m ago•0 comments

SuperStation One: FPGA gaming console

https://retroremake.co/pages/superstation%E1%B5%92%E2%81%BF%E1%B5%89
1•measurablefunc•40m ago•2 comments

Scarlet: An AI video editor for macOS and Windows

https://github.com/Forward-Future/scarlet
2•7777777phil•43m ago•0 comments

1M Data Centers in Space: Why the FCC Approved Elon Musk's Idiotic Ideas

https://emeraldbook.org/news/nov-2726/
3•BerislavLopac•48m ago•0 comments

Rail Cube in Prolog

https://chen.cat/prolog/railcube/
1•triska•49m ago•0 comments

How to Improve When You're Stuck at 'Just OK'

https://brandongustafson.me/ok-plateau/
1•acqbu•54m ago•0 comments

Domes

https://www.shelterpub.com/domes
1•tosh•55m ago•0 comments

Chart of the Day: Jevons Losing Juice as Token Spend Flatlines

https://paulkedrosky.com/chart-of-the-day-jevons-losing-juice-as-token-spend-flatlines/
2•u1hcw9nx•56m ago•0 comments

Guys, a Help for You

https://themeforge.page.gd/
1•Dumasha05•57m ago•0 comments

LTX-2.5 at 4K, in half the time

https://www.doubleai.com/research/maxwell-ltx-2-5-4k-in-half-the-time
1•NeuralOracle•59m ago•0 comments

Show HN: Yavc.App (Yet Another Vibe-Coded App)

https://yavc.app/
1•paulmooreparks•1h ago•0 comments

Leading AI models are biased against certain accents

https://www.washington.edu/news/2026/11/04/ai-models-are-biased-against-certain-accents/
3•giuliomagnifico•1h ago•1 comments

Sex in Britain has changed significantly, especially among young people

https://www.ucl.ac.uk/news/2026/nov/sex-britain-has-changed-significantly-especially-among-young-...
2•giuliomagnifico•1h ago•0 comments

AI Agents Livestream Their Assault on P=NP

https://pequalnp.com/pnp/live
1•extasetoi12•1h ago•0 comments

NOAA Found a Fish Sitting in a Brine Pool at the Bottom of the Gulf [video]

https://www.youtube.com/watch?v=i9J1EmGTezk
1•zeristor•1h ago•1 comments

The Monumental Achievement of the Stanford Encyclopedia of Philosophy

https://www.newyorker.com/culture/annals-of-inquiry/the-monumental-achievement-of-the-stanford-en...
1•rbanffy•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).