frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Procedural Grid Art

https://twentythreeoeight.com/
1•minosu•9s ago•0 comments

Show HN: World Sizer – A world map where area reflects population, GDP, and more

https://douwe.com/projects/worldsizer
1•dosinga•2m ago•0 comments

Chinese Gov issue warning: Don´t talk to aliens if you see one [video]

https://www.tiktok.com/@juliettheband/video/7676891956911295758
1•trilogic•3m ago•0 comments

Show HN: Ringdl2 – A lightweight Linux downloader in Rust using io_uring

https://github.com/infomaniac777/ringdl2/blob/master/README.md
1•infomaniac777•4m ago•0 comments

The Web-Search Latency Your Agent Pays

https://telem.ai/blog/latency-research
1•mohanz•5m ago•0 comments

Japan's music cafés are striking a chord abroad

https://www.economist.com/culture/2026/08/20/japans-music-cafes-are-striking-a-chord-abroad
2•andsoitis•8m ago•0 comments

Ask HN: Guess what makes SSH multiplexing physically impossible

1•logicallee•9m ago•0 comments

Ask HN: Any opinions on Muse Code over others?

1•senor_digimon•14m ago•0 comments

A Tale of Two Flink Autoscalers

https://netflixtechblog.com/a-tale-of-two-flink-autoscalers-e9f6a1b1492b?source=rss-c3aeaf49d8a4-...
1•sbulaev•17m ago•0 comments

Malware infects Android-based automotive head unit firmware

https://securelist.com/android-head-unit-malware/121106/
15•campuscodi•18m ago•0 comments

Things a Computer Scientist Rarely Talks About, by Donald E. Knuth

https://www.christiancentury.org/reviews/2011-04/things-computer-scientist-rarely-talks-about-don...
2•senor_digimon•20m ago•1 comments

Yomif Kejelcha regains world half marathon record with 56:51 in Buenos Aires

https://worldathletics.org/competitions/world-athletics-label-road-races/news/world-half-marathon...
1•wslh•21m ago•0 comments

Go Ahead, Sean Duffy. Let Your Daughter Go to Harvard

https://www.nytimes.com/2026/08/23/opinion/harvard-education-ideology-political-polarization.html
1•berkeleyjunk•21m ago•0 comments

Show HN: Rmp, a Subsonic music player for generating playlists on the fly

https://github.com/codesoap/rmp
2•codesoap•23m ago•0 comments

AwardMath – Award Travel Planner

https://awardmath.com
1•info-cast-hub•24m ago•0 comments

Soofi S 31.6B. German Open Moe Explained

https://kie.ai/blog/what-is-soofi-s-31-6b
1•pelasaco•26m ago•0 comments

Vibedecode

https://vibe-decode.com/
1•implexlabs•27m ago•1 comments

There is now over 2,100 hours of video evidence on Archive Genocide

https://archivegenocide.com/
3•34679•27m ago•0 comments

Ask HN: Is Apple Messages plugin for ChatGPT a privacy risk?

https://twitter.com/stevemoraco/status/2091194172917338520
2•taubek•28m ago•0 comments

Ask HN: What a fullstack dev should know about security?

1•ah1508•29m ago•0 comments

All Your Heroes Were on Drugs

https://medium.com/belover/all-your-heroes-were-on-drugs-b1eafd9adf50
1•andsoitis•29m ago•0 comments

The rise and fall of rationality in language (2021)

https://www.pnas.org/doi/10.1073/pnas.2107848118
2•mpweiher•31m ago•0 comments

Show HN: Ever Wanted to Call Codex from Claude Code? My Harness Orchestrator

https://github.com/ptmrio/harness-subagent
3•SPQRK•33m ago•0 comments

Trump administration's 75-country visa ban was illegal, judge rules

https://www.npr.org/2026/08/22/nx-s1-5941765/trump-immigration-visa-ban-75-countries
6•garbawarb•37m ago•0 comments

ChatGPT Is a Japanese Internet Degen

https://theosteiner.de/chatgpt-is-a-japanese-degen-or-how-fried-chicken-sent-me-down-a-tokenizer-...
3•theo-steiner•38m ago•0 comments

My Contaminated Smile (<2003)

https://web.archive.org/web/20101126175812/http://www.mouthmag.com/issues/58/contam_smile.htm
2•verisimi•40m ago•0 comments

There's no substitute for real-world experience

https://mattcasmith.net/2026/08/23/no-substitute-real-world-experience
3•mattcasmith•41m ago•1 comments

The Bay Area's 'city of the dead'

https://www.sfgate.com/local/article/bay-area-colma-cemeteries-22364598.php
3•gmays•42m ago•0 comments

Personal care products are awash in unlabeled toxic chemicals, study finds

https://www.theguardian.com/us-news/2026/aug/23/personal-care-products-unlabeled-toxic-chemicals
3•pseudolus•43m ago•0 comments

The Interview That Wouldn't Die

https://returnzero.dev/articles/coding-interviews-in-the-age-of-ai
1•rotemmiz•46m ago•1 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).