frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Become Worthless (To Tech Companies)

https://www.coryd.dev/posts/2026/become-worthless-to-tech-companies
1•busymom0•1m ago•0 comments

Accessibility and the New Model of the Internet

https://cassidoo.co/post/accessibility-and-the-internet/
1•Brajeshwar•1m ago•0 comments

Health Care Workers Are Tired of Cleaning Up Palantir's Mess

https://www.wired.com/story/healthcare-workers-are-tired-of-cleaning-up-palantirs-mess/
1•Brajeshwar•1m ago•0 comments

A parasitic Fibonacci computation inside /usr/bin/top

https://seriot.ch/computation/terminfo/
1•beefburger•3m ago•1 comments

Show HN: Keel – automated job applications that refuse to lie

https://github.com/KeelDev-tech/keel
1•keel_dev•3m ago•0 comments

46,000-Year-Old Worm Possibly Revived from Siberian Permafrost

https://www.scientificamerican.com/article/46-000-year-old-worm-possibly-revived-from-siberian-pe...
1•thunderbong•3m ago•0 comments

Hundreds of Wisconsin election offices not using cybersecurity best practices

https://www.votebeat.org/wisconsin/2026/10/02/hundreds-elections-jurisdictions-not-using-governme...
1•hn_acker•4m ago•0 comments

Religious Scholars Met with Anthropic. What They Heard Stunned Them

https://www.nytimes.com/2026/09/29/us/anthropic-claude-morals-ai.html
1•ericzawo•4m ago•0 comments

Bioelectrical fluctuations in a mushroom controlling robotic arms [video]

https://www.youtube.com/watch?v=LEkvjz50uws
1•dewey•4m ago•0 comments

DPS knew of issues with Texas online voter registration portal as early as March

https://www.votebeat.org/texas/2026/10/01/records-show-dps-knew-of-problems-with-texas-online-vot...
3•hn_acker•7m ago•1 comments

Why are people excited about Jev?

https://thinkthen.dev/blog/jev-is-trained-to-decide/
1•imaurer•8m ago•0 comments

How to Use AI to Write Good Code (Slowly)

https://jdagostino.github.io/slowly/index.html
2•timmmmmmay•9m ago•0 comments

Florida county discovers mysterious Flock cameras with no obvious owner

https://www.washingtonpost.com/nation/2026/10/01/florida-county-discovers-mysterious-flock-camera...
1•MadrasThorn•11m ago•1 comments

Datalog Disassembly [pdf]

https://www.usenix.org/system/files/sec20-flores-montoya.pdf
2•ibobev•11m ago•0 comments

Trump's AI rebrand causes 'unprecedented' demand for Slovenian website names

https://www.bbc.co.uk/news/articles/cqx2z23xj555o
3•rbanffy•13m ago•0 comments

Furry Airline Pilots Are Just Minding Their Own Business

https://www.wired.com/story/furry-airline-pilots-are-just-minding-their-own-business/
2•rbanffy•13m ago•1 comments

Still Entombed After All These Years: The twists and turns of a maze game (2022)

https://intarch.ac.uk/journal/issue59/3/full-text.html
1•fratellobigio•13m ago•0 comments

gpuvis: GPU Trace Visualizer

https://github.com/mikesart/gpuvis
2•luu•15m ago•0 comments

Chat Here

1•VanceMilo•15m ago•3 comments

Destroy Any Site

https://web-destroyer.wanno.dev/
1•federiconbo•17m ago•0 comments

Bull Expands Supercomputer Manufacturing with €80M Angers Redevelopment

https://www.hpcwire.com/off-the-wire/bull-expands-supercomputer-manufacturing-with-e80m-angers-re...
1•rbanffy•18m ago•0 comments

The System Around the Code

https://bitbytebit.substack.com/p/the-system-around-the-code
1•recroad•18m ago•0 comments

Magic Switch: Share Apple Magic keyboard/track-pad/mouse between two Macs

https://joshua.hu/magic-switch-easily-switch-magic-keyboard-trackpad-mouse-between-mac-macbook-macos
2•chanux•18m ago•0 comments

The Oldest Book Printed with Movable Type: Jikji, Korean Buddhist Teachings

https://www.openculture.com/2026/09/the-oldest-book-printed-with-movable-type-is-not-the-gutenber...
1•geox•20m ago•0 comments

Airbus A350F First Flight: A New Era for Cargo? [video]

https://www.youtube.com/watch?v=quZP59qUIgw
1•pbkompasz•21m ago•0 comments

Show HN: Kennel – Instant SBoM, OSV, End-of-Life Web-Analytics for OCI Container

https://kennel.blueshoe.io/
2•schille•25m ago•0 comments

Ezeoke Encryption

https://chukaze.dev/blog/EE/
2•thunderbong•25m ago•0 comments

David Ellison on Paramount and Warner Bros. rename: "Together, we are Skydance."

https://twitter.com/ellisonskydance/status/2106006299909505523
1•ChrisArchitect•26m ago•5 comments

Bag ExpLoration: ROS Bag File Web Visualizer

https://github.com/hussain004/bagel
2•Hussain04•26m ago•0 comments

BootLoops: A toolkit for exact quantitative science

https://bootloops.ai/
1•rbinv•27m 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).