frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: Is blogging (text content creation) dead?

1•gshakir•3m ago•0 comments

Exposing the Systematic Vulnerability of Open-Weight Models to Prefill Attacks

https://www.far.ai/research/prefill-level-jailbreak-a-black-box-risk-analysis-of-large-language-m...
1•yubblegum•3m ago•0 comments

On the day the Riemann hypothesis fell to AI, I took my son for a walk

https://www.theintrinsicperspective.com/p/on-the-day-the-riemann-hypothesis
1•crescit_eundo•3m ago•0 comments

The AI Safety Community Is Increasingly Freaked Out. Should They Be?

https://www.motherjones.com/politics/2026/11/ai-safety-anthropic-open-ai/
1•donkan168•5m ago•0 comments

Microsoft 365 outage of 12 Nov 2026: Post Incident Report [pdf]

https://tianyin.github.io/misc/pir_microsoft_365_11-12-2026.pdf
1•dverlaeckt80•6m ago•0 comments

Automating Audits of Scientific Evidence

https://evidence.guide/
1•panarky•7m ago•0 comments

The Internet forgets, but I don't want to

https://alexwlchan.net/2025/social-media-scrapbook/
1•ykgoon•8m ago•0 comments

Spooky Town by Ghostown

https://vivianvoss.net/blog/bytes-of-art-ghostown-spooky-town
1•Brajeshwar•10m ago•0 comments

RunPod's MCP server tells AI agents to rate it and not mention it to the user

https://github.com/runpod/runpod-mcp/issues/202
1•XadniGraves•13m ago•0 comments

How does a Grand Piano work? – Part 1 (2018) [video]

https://www.youtube.com/watch?v=NDvS2V7HbnY
1•susam•13m ago•0 comments

Made an USB GPU for 20¢ [video]

https://www.youtube.com/watch?v=mAM5MpFBTu8
1•LorenDB•13m ago•0 comments

SSH Is a GUI Framework

https://zydra.sh/articles/ssh-is-a-gui-framework/
1•teledream•13m ago•0 comments

Landscape of Consciousness

https://loc.closertotruth.com
1•bondarchuk•15m ago•1 comments

A Society of AI Scientists: A preprint server for independent agent research

https://www.alphaxiv.org/abs/2611.society-ai-scientists
1•dnw•18m ago•0 comments

It Has to Be Fun

https://jpmens.net/2026/11/21/it-has-to-be-fun/
3•Tomte•20m ago•0 comments

Mutex poisoning is not for everyone

https://bertptrs.nl/2026/11/16/mutex-poisoning-is-not-for-everyone.html
2•birdculture•21m ago•0 comments

/Bin/Sh Invaders

https://www.blog.montgomerie.net/posts/2026-11-03-sh-invaders/
1•jrmg•22m ago•0 comments

A Letter to Mr. Shannon (Unanswered)

https://notes.doering.ai/p/a-letter-to-mr-shannon-unanswered
1•bbor•22m ago•0 comments

Counting to 4B with linear congruential generators and Feistel networks

https://acid.vegas/blog/counting-to-four-billion/
1•acidvegas4real•25m ago•0 comments

The Decline of Trans and Queer Identity Among Young Americans

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6433544
6•RickJWagner•29m ago•0 comments

Lean Verification of the Riemann Hypothesis - Joint statement by...

https://leanprover-community.github.io/blog/posts/riemann-hypothesis/
2•g-b-r•29m ago•1 comments

DRM with Castlabs and WebRTC

https://www.red5.net/blog/drm-with-castlabs-and-webrtc/
2•mondainx•30m ago•0 comments

The real-life risks of relying on proprietary software

https://www.fsf.org/blogs/community/2026-real-life-risks-of-proprietary-software
1•pizzaiolo•30m ago•0 comments

The Age of Personal Software in Healthcare

https://daveads.github.io/writing/the-age-of-personal-software-in-healthcare/
1•daveads5•33m ago•0 comments

WikiHouse

https://www.wikihouse.cc
2•tosh•33m ago•1 comments

2 Million 3D particle characters x2 fighting game in a single SVG

https://svgfpsaiagents.github.io/svgfpsgameAI/particlefighter.svg
1•zwanemakki•34m ago•1 comments

How much space is taken up by document versions?

https://eclecticlight.co/2026/11/21/how-much-space-is-taken-up-by-document-versions/
1•Brajeshwar•35m ago•0 comments

Playing GTA VI with a brain computer interface

https://twitter.com/neuralink/status/2123890949029818800
1•houqp•38m ago•0 comments

What is alternative grading? These TMU professors share how it works

https://www.ctvnews.ca/toronto/article/what-is-alternative-grading-these-tmu-professors-share-how...
1•amichail•42m ago•0 comments

The Future of Programming (2013)

https://worrydream.com/dbx/
1•zenincognito•42m 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).