frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Unraveling the complexity of climate change hidden underground

https://worldsensorium.com/what-lies-beneath-the-climate-story/
1•dnetesn•2m ago•0 comments

Anthropic is rapidly accelerating AI development amid slowdown calls

https://apnews.com/article/anthropic-metr-ai-claude-acceleration-9cf8c590ffc1abdb489179bdccc69c23
1•giuliomagnifico•3m ago•0 comments

Tesla to axe Cybertruck as Musk shifts focus to robotics and AI

https://www.ft.com/content/8ec923a8-a581-4995-a92c-c08e16bf2e98
1•frereubu•3m ago•0 comments

Branching Beyond Leonardo: The Evolution of Tree Architecture Theory

https://blue-continuum.com/branching-beyond-leonardo
1•dnetesn•4m ago•0 comments

Show HN: Black Pixel – 69-byte inverse of the Million Dollar Homepage

https://black-pixel-1x1.vercel.app
2•KINGOFTHESCREEN•4m ago•0 comments

Media manager that connects to your streaming services and connected speakers

https://www.music-assistant.io/
1•LelouBil•4m ago•0 comments

Homomorphic Encryption for Pseudonymization – privacy enabled data-sharing

https://belfortlabs.com/blog/smals-blind-pseudonymization
1•sambejk•5m ago•1 comments

The Docker group is root access, my agent used it to write to /etc.

https://jeena.net/notes/1497
2•jeena•5m ago•0 comments

Open Source Spotify client library

https://github.com/librespot-org/librespot
1•LelouBil•6m ago•0 comments

Designing Rust APIs around KEM, AEAD and key derivation workflows

https://github.com/lecodev-26/nexus-q
1•lecodev•6m ago•0 comments

Denmark to rule on 'parallel societies' after 'non-western' people evicted

https://www.theguardian.com/world/2026/nov/06/denmarks-top-court-to-rule-on-parallel-societies-af...
1•Geekette•7m ago•0 comments

"The AI Bubble Lesson Is Coming" – NYU Professor Aswath Damodaran [video]

https://www.youtube.com/watch?v=dOIFazFlvlc
1•novaRom•9m ago•0 comments

Irish national broadcaster RTÉ, other media groups evacuated after bomb threat

https://www.rte.ie/news/ireland/2026/1106/1598241-rte-evacuation/
1•gerjomarty•9m ago•0 comments

Meta says US users can now video chat with their Muse AI avatar

https://techcrunch.com/2026/11/05/meta-says-us-users-can-now-video-chat-with-their-muse-ai-avatar/
2•jomon003•14m ago•0 comments

Show HN: Ostdb, an open database of official video game soundtrack

https://ostdb.net/
1•metju•17m ago•0 comments

First known cyberattack on Swiss food refrigeration system

https://www.swissinfo.ch/eng/various/first-known-cyberattack-on-a-refrigeration-system-in-switzer...
2•amenghra•18m ago•2 comments

I gave an agent a lakehouse and control of my garden

https://jatorre.github.io/garden/
2•jatorre•22m ago•0 comments

The campaign to push Northstar Browser into Linux distributions

https://lwn.net/Articles/1102738/
3•roschdal•23m ago•0 comments

Ask HN: How will you invest now that the AI bubble is bursting?

2•roschdal•25m ago•2 comments

ING puts $500 million of data-center loans up for sale

https://www.reuters.com/business/finance/ing-puts-500-million-data-center-loans-up-sale-bloomberg...
4•bantunes•25m ago•0 comments

Ask HN: What is the most secure OS for mobile phone?

2•Muralnick•29m ago•0 comments

X-87 – DOS 256 bytes

https://www.onirom.fr/wiki/codegolf/x-87/
2•birdculture•31m ago•0 comments

Show HN: Overhead – the planes overhead, painted on an e-ink frame

https://github.com/dmellok/tesserae-widget-overhead
1•xDaftTurtle•35m ago•0 comments

Apple Music's not found page features a fully functional iPod Classic

https://music.apple.com/us/new/404
2•francescobonomi•38m ago•0 comments

ARR Doesn't Mean What It Used To – By Simon Wu

https://signalsbysimon.substack.com/p/arr-doesnt-mean-what-it-used-to-15
1•fagnerbrack•40m ago•0 comments

Playable Doom in Factorio (Unmodded)

https://www.reddit.com/r/factorio/comments/1xoz7am/playable_doom_in_factorio_unmodded/
2•zahrevsky•40m ago•0 comments

Show HN: Free real-time order book heatmap for Bitcoin, gold and US 500

https://swiftedge.uk/depth
1•Stangenberg295•41m ago•0 comments

Hollywood Banning Prediction Market Betting on Movie Release Dates

https://www.hollywoodreporter.com/movies/movie-news/prediction-market-ban-hollywood-studios-12367...
1•thm•42m ago•0 comments

Show HN: Liner Notes – an iPhone diary that drafts itself from your day

https://linernotes.aves.ltd/en/
1•YuYama•43m ago•0 comments

Ants trapped for years in Soviet bunker; survival by cannibalism (2016)

https://jhr.pensoft.net/articles.php?id=9096
26•hitekker•44m ago•4 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).