frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Celestial Navigation

https://calebkruse.com/10-projects/sextant/
1•oliverkwebb•4m ago•0 comments

Elektroda, a Hardware Hacking Website

https://elektroda.com/news/
1•xchip•4m ago•0 comments

House passes BAAJA permitting bill sought by energy, tech sectors

https://www.cnbc.com/2026/12/01/baaja-permitting-bill-house-vote-trump.html
1•ortusdux•7m ago•1 comments

A. S. Dyatlov, "Chernobyl – How It Was" (1995) [pdf]

https://github.com/iczelia/chernobyl-how-it-was/blob/main/main.pdf
1•palaiologos•8m ago•0 comments

Legendary investor Warren Buffett dies

https://www.npr.org/2026/12/01/nx-s1-1001421/warren-buffett-investor-obituary-berkshire-hathaway
1•DeepLogin•9m ago•1 comments

Berkshire Hathaway INC. Shareholder Letters, 1977-2024

https://www.berkshirehathaway.com/letters/letters.html
1•simonebrunozzi•9m ago•1 comments

Show HN: JTorrent - Download and stream torrents in the browser

https://jtorrent.in/
1•0xjerry•10m ago•0 comments

SafeWorld and Nvidia launch safety benchmark for AI-powered robots

https://thenextweb.com/news/safeworld-nvidia-robot-safety-benchmark
1•awad•10m ago•0 comments

LenPEG

https://www.dangermouse.net/esoteric/lenpeg.html
1•keyle•10m ago•0 comments

El Niño Rains Could Trigger Another Poisonous Wild Mushroom Surge

https://www.cdph.ca.gov:443/Programs/OPA/Pages/NR26-035.aspx
1•gumby•10m ago•0 comments

Value Investing

https://en.wikipedia.org/wiki/Value_investing
1•seizethecheese•12m ago•0 comments

Warren Buffett, homespun investor who built a fortune, dies at 96

https://www.washingtonpost.com/obituaries/2026/12/01/warren-buffett-homespun-investor-who-built-v...
1•reaperducer•13m ago•1 comments

Tell HN: It's not just Claude, Codex (6.2-Astra Ultra) is also sabotaging work

1•emilfihlman•13m ago•0 comments

The Creative Life of a Genius: Nobel Laureate P. A. M. Dirac (2014)

https://www.psychologytoday.com/us/blog/psychology-masala/201402/the-creative-life-of-a-genius-no...
1•myth_drannon•13m ago•0 comments

Ars Libri

https://www.arslibri.com/collections.php
1•bookofjoe•14m ago•0 comments

Big healthcare cuts begin to bite

https://www.ft.com/content/27984602-8372-400f-a71f-cd9023f26aa8
1•petethomas•17m ago•0 comments

Warren Buffett dies at age 96 [pdf]

https://www.berkshirehathaway.com/news/dec0126.pdf
1•mrTeale•17m ago•1 comments

Warren Buffett Has Died

https://www.bbc.co.uk/news/live/cq62p4jm5nmrt
3•simonebrunozzi•18m ago•1 comments

Warren Buffet has passed away[pdf]

https://www.berkshirehathaway.com/dec0126.pdf
2•thatxliner•20m ago•1 comments

iOS 27.3 Cuts Siri AI Daily Usage Limits by Up to 94%

https://nitter.cf/itspdfu/status/2126710709337948615
2•DeepLogin•22m ago•1 comments

Expression of Furtile

https://compo.tv/w/furtile
1•mfbilling•22m ago•0 comments

Warren Buffet has passed away at 96

https://en.wikipedia.org/wiki/Warren_Buffett
2•bluedragon1221•22m ago•1 comments

Legendary investor Warren Buffett dies at age 96

https://finance.yahoo.com/markets/article/legendary-investor-warren-buffett-dies-at-age-96-231642...
2•angst•23m ago•1 comments

Aggregator of SF Bay Area events (tech, design, academic, sports)

https://bayweekahead.com
1•GeneralRuntime•25m ago•0 comments

Warren Buffett Dies at 96

https://www.axios.com/2026/12/01/warren-buffett-dies-berkshire-hathaway-obitutary
6•doener•26m ago•1 comments

Tell HN: Warren Buffet Dies at 96

9•prakashn27•27m ago•1 comments

An Open Letter on the Future of the U.S. Web Design System [pdf]

https://fedscoop.com/wp-content/uploads/sites/5/2026/09/Copy-of-USWDS-Open-Letter-for-publication...
1•stefankuehnel•28m ago•0 comments

House passes bill to compel the release of more Epstein records

https://apnews.com/article/epstein-justice-department-house-massie-3cf9436482317216df9a326aef3ee575
3•petethomas•29m ago•1 comments

Gardening with OpenSCAD

https://hackaday.com/2026/10/01/gardening-with-openscad/
1•moltean•29m ago•0 comments

Moon Phase and Libration, 2027

https://svs.gsfc.nasa.gov/5691/
1•mooreds•30m 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).