frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Why AI Transport

https://ably.com/docs/ai-transport/why
1•zknill•1m ago•0 comments

AI token streaming isn't about SSE vs. WebSockets

https://zknill.io/posts/ai-token-streaming-isnt-about-sse-vs-websockets/
1•zknill•2m ago•0 comments

Africa Is Embracing Renewable Energy

https://e360.yale.edu/digest/africa-embraces
3•YaleE360•2m ago•0 comments

Nondeterminism's Not the Problem

https://isaacvando.com/nondeterminisms-not-the-problem
1•isaacvando•2m ago•0 comments

CVE-2026-48710: A Maintainer's Perspective

https://marcelotryle.com/blog/2026/05/28/cve-2026-48710-a-maintainers-perspective/
2•kludex•4m ago•0 comments

National Prompt Registry

https://www.nationalprompt.com/
2•outime•6m ago•0 comments

Zero Operators: Humans Write the Plan, Agents Run the Workflow

https://github.com/SamPlvs/zero-operators
1•delduca•9m ago•0 comments

Ronny Chieng Tells Harvard to 'Destroy AI' as Graduates Cheer

https://www.harvardmagazine.com/commencement/class-day-ronny-chieng-harvard
4•cdrnsf•9m ago•0 comments

The Coffee Ride Shop Visit: Do Good (With Coffee)

https://theradavist.com/the-coffee-ride-shop-visit-do-good-with-coffee
1•ohjeez•10m ago•0 comments

HTTP Streaming and AI

https://ably.com/docs/ai-transport/why/http-streaming-and-ai
1•zknill•11m ago•0 comments

Show HN: Agent Memory Guard – OWASP defense for AI agent memory poisoning

https://github.com/OWASP/www-project-agent-memory-guard
1•vgudur297•13m ago•0 comments

GTA 6 Developers Unionize

https://rockstarintel.com/gta-6-developers-announce-rockstar-games-union/
5•AndrewKemendo•13m ago•1 comments

The Vatican's Man Inside Anthropic

https://www.wired.com/story/the-vaticans-man-inside-anthropic/
2•Brajeshwar•14m ago•0 comments

Sonic boom rattles South Carolina

https://www.wltx.com/video/news/local/sonic-boom-rattles-south-carolina/101-c40c9d3b-633d-4442-ab...
1•thunderbong•15m ago•0 comments

I tracked down the thief who stole $200k of Lego [YouTube] [video]

https://www.youtube.com/watch?v=wscQpkcwgNU
1•rob•18m ago•0 comments

When AI starts writing systems code

https://www.coreauto.com/blog/when-ai-starts-writing-systems-code
2•walz•19m ago•0 comments

Show HN: Elemental – simple front ends in plain JavaScript

https://github.com/fynyky/elemental
5•fynyky•19m ago•1 comments

Brilliant launches AI tutor to get kids to think

https://twitter.com/suekhim/status/2060378988606878147
11•stochastician•21m ago•0 comments

Does AI Make Totalitarianism More Likely?

https://demonstrandom.com/essays/posts/ai_totalitarianism/
3•demonstrandom•23m ago•3 comments

Panix – Universal NixOS Deployment Tool

https://github.com/mihakrumpestar/panix
1•miha_k•23m ago•1 comments

Does Being Bored Make Us More Creative? (2014)

https://fermatslibrary.com/s/does-being-bored-make-us-more-creative
1•downbad_•24m ago•0 comments

Unix in East Germany (GDR) (1990)

https://groups.google.com/g/comp.unix.wizards/c/QX_dxElrVNs
2•downbad_•24m ago•0 comments

The literary world is sleepwalking into an AI disaster

https://www.theargumentmag.com/p/the-literary-world-is-sleepwalking
3•Michelangelo11•25m ago•1 comments

Replacing Employees with AI

https://twitter.com/EscanorReloaded/status/2059637607403831732
2•redbell•28m ago•0 comments

The Biggest Tell That Something Was Written by AI

https://www.theatlantic.com/technology/2026/05/how-to-tell-ai-writing/687345/
2•Jtsummers•33m ago•0 comments

Jeff Geerling: The Framework 12 is dead. Apple killed it [video]

https://www.youtube.com/watch?v=aPVAnwuSjfk
4•throwaway2037•33m ago•2 comments

HolaClaw: One-click secure OpenClaw on Mac

https://holaclaw.ai/
5•ridruejo•34m ago•0 comments

Resistance Against AI Is Not Futile. A List Is a Good Start

https://read.misalignedmag.com/resistance-against-ai-is-not-futile-a-list-is-a-good-start-3b8a4d3...
1•lcubw•34m ago•0 comments

Danish Pension Blacklists SpaceX over 'Catastrophic Governance'

https://www.bloomberg.com/news/articles/2026-05-29/danish-pension-fund-blacklists-spacex-citing-g...
10•leopoldj•35m ago•5 comments

Itanium

https://en.wikipedia.org/wiki/Itanium
3•tosh•35m 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).