frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Nvidia CEO Jensen Huang speaks at Computex 2026 (2:06:24 Video)

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

A JavaScript PoC FROST side channel a browser tab that senses your SSD activity

https://github.com/brammittendorff/opfs-ssd-timing
1•botw44•2m ago•0 comments

The Spam Economy Comes to Work

https://fffej.substack.com/p/the-spam-economy-comes-to-work
1•PretzelFisch•2m ago•0 comments

The Axis That Made the Chips

https://hoeijmakers.net/the-axis-that-made-the-chips/
1•janvdberg•3m ago•0 comments

Termux: X11 is a fledged X server built with Android NDK

https://github.com/termux/termux-x11
1•ivo8n52•3m ago•0 comments

Undigested fructose linked to anxiety and brain inflammation

https://www.psypost.org/undigested-fructose-linked-to-anxiety-and-brain-inflammation/
1•amichail•3m ago•0 comments

When Background AI Agents Become a Security Boundary Problem

https://www.originhq.com/research/background-c2-agent
1•lucasluitjes•5m ago•0 comments

Nvidia announces new AI chip for personal computers

https://www.bbc.com/news/articles/crmp9mppvzro
1•rishikeshs•7m ago•0 comments

Google's top result is 16yo when searching for "Ubuntu 24.04 install fonts"

https://www.google.com/search?q=ubuntu24.04installfonts
1•felooboolooomba•10m ago•1 comments

Thermal conductivity modulation as a mechanism of thermotolerance in tardigrades

https://royalsocietypublishing.org/rsif/article/23/238/20251033/481636/Thermal-conductivity-modul...
1•bookofjoe•13m ago•0 comments

Why Melanoma Spreads More in Middle Age

https://brieflycurious.com/why-melanoma-spreads-more-in-middle-age-a-mouse-study-points-to-the-im...
1•matkoone•13m ago•0 comments

Sixteen Kids and a Hit Man (2024)

https://nymag.com/intelligencer/article/christopher-pence-corderos-fbi-dark-web-hit-man.html
1•Michelangelo11•16m ago•0 comments

Lynching Postcard

https://en.wikipedia.org/wiki/Lynching_postcard
2•doener•21m ago•0 comments

Show HN: Postbase – 100% open source Alternative to Firebase and Supabase [video]

https://www.youtube.com/watch?v=St_kJZXZ_nE
3•harshalone•23m ago•1 comments

Rebuilding the Access Edge: Why We Replaced PPPoE with a Custom DHCP Server

https://medium.com/@mustafa.n.gaid/rebuilding-the-access-edge-why-we-replaced-pppoe-with-a-custom...
1•musnas•24m ago•0 comments

Show HN: Curtab – Each command in its own interactive terminal tab

https://github.com/rashidmya/curtab
1•rashidmya•27m ago•0 comments

China Aims A.I. At Predicting Who Could Pose a Political Risk

https://www.nytimes.com/2026/06/01/us/politics/china-ai-predicting-dissent.html
5•uxhacker•31m ago•0 comments

Show HN: Open-source sync-engine for managing websites at scale

https://github.com/gospecter/specter
1•aabergkvist•32m ago•0 comments

We entered Fixathon as hackers. We left as winners

https://layerx.xyz/blog/fixathon-win
1•supermalvo•36m ago•0 comments

Am I too pessimistic about Python's future?

2•noon-raccoon•39m ago•1 comments

Code Review Assumes an Author

https://blog.raed.dev/posts/ai-code-review/
1•Raed667•39m ago•0 comments

Show HN: Mochi – a performance-first SveltKit alternative

https://mochi.fast/
1•khromov•41m ago•0 comments

The making of iconic Clint Eastwood posters

https://twitter.com/i/status/2061246916378185742
1•Michelangelo11•41m ago•0 comments

The Rsync thing was inevitable and it's happening everywhere

https://robertjwebb.substack.com/p/the-rsync-thing-was-inevitable-and
2•haburka•42m ago•0 comments

Netflix Wiz creates app to slash AI bills, then open sources it

https://www.theregister.com/ai-ml/2026/05/31/netflix-wiz-creates-app-to-slash-ai-bills-then-open-...
2•pseudolus•49m ago•0 comments

What building payment products taught me about scalable financial infrastructure

https://www.solvimon.com/blog/five-lessons-on-building-scalable-financial-infrastructure
1•arnon•49m ago•0 comments

Australia's far-right party leads in national poll for first time

https://www.reuters.com/world/asia-pacific/australias-far-right-party-leads-national-poll-first-t...
2•KnuthIsGod•49m ago•1 comments

Are API keys too much friction for AI tools in teams?

https://intrascope.app/
1•Intrascopeapp•50m ago•0 comments

Fine-tuning an LLM to write docs like it's 1995

https://passo.uno/fine-tuning-docs-llm/
1•theletterf•52m ago•0 comments

Nordstjernen Web Browser

https://nordstjernen.org/
5•andreasrosdal•55m 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).