frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Sports Bets, Swaps, and the Kalshi Mess

https://www.stevevladeck.com/p/262-sports-bets-swaps-and-the-kalshi
1•hn_acker•42s ago•0 comments

Elections and the Base Rate Fallacy

https://www.stevevladeck.com/p/260-elections-and-the-base-rate-fallacy
1•hn_acker•48s ago•0 comments

Show HN: MyGraph – Agent memory where every fact cites its source

https://github.com/dieron/mygraph
1•dieron•1m ago•0 comments

Erlang/OTP: TLS 1.2 Client Completes Handshake Without a Server Certificate

https://cna.erlef.org/cves/CVE-2026-124286.html
1•saltypal•1m ago•0 comments

Amazon faces FAA probe after delivery drone strikes fiber cable and garage

https://www.cnbc.com/2026/11/23/amazon-drone-crash-michigan-faa-investigation.html
2•ilamont•3m ago•1 comments

Show HN: Yolt – Your Personal TV

https://github.com/joonfjp/yoltapp
1•joonfjp•4m ago•0 comments

Employees at OpenAI and Anthropic are panicking

https://garymarcus.substack.com/p/breaking-employees-at-openai-and
1•only_in_america•4m ago•0 comments

Show HN: I've become the dumb one, so I made a shortcut to ask Claude

https://github.com/EdonZo/sidemoon
1•edonzo•6m ago•0 comments

Show HN: Fit large JSON tool results into an LLM's context without losing data

https://github.com/AryabhattaLabs/agent-tool-result-reducer
1•ajeetsk•6m ago•0 comments

Tidal Bans AI-Generated Music

https://variety.com/2026/music/news/tidal-bans-ai-generated-music-1236956924/
3•theanonymousone•6m ago•0 comments

Show HN: PII Guard – local Chrome extension that redacts PII before AI chats

https://github.com/almma-ai/pii-guard
1•lwall_mba•7m ago•0 comments

Building a WhatsApp takes one prompt. Changing one feature doesn't

https://newsletter.mastermentee.com/p/building-a-whatsapp-takes-one-prompt
1•theanonymousone•7m ago•0 comments

Show HN: Mason – a lightweight Postgres read-replica, built on columnar storage

https://masondata.ai/
1•tagspace•7m ago•0 comments

Mayo Clinic to give appointment workers 5 paid minutes a day to boot computers

https://www.cbsnews.com/minnesota/news/mayo-clinic-back-wages-settlement-minnesota-attorney-gener...
2•theanonymousone•7m ago•0 comments

Guidelines for AI-Assisted Contributions to the Wimse WG

https://mailarchive.ietf.org/arch/msg/wimse/dN51wJq1zrDjrnew-6nFdwcG05Y/
1•mooreds•8m ago•0 comments

Dafuq Is a Deterministic VM?

https://fzakaria.com/2026/10/24/dafuq-is-a-deterministic-vm
1•skadamat•8m ago•0 comments

Moscow accuses Estonia of hostile actions on 'verge of triggering open war'

https://www.reuters.com/world/moscow-accuses-estonia-hostile-actions-verge-triggering-open-war-20...
4•Bondi_Blue•8m ago•0 comments

Britain's most remote mainland pub (2022)

https://www.bbc.com/travel/article/20220802-britains-most-remote-mainland-pub
1•mooreds•10m ago•0 comments

Design Principles Behind Smalltalk (1981)

https://www.cs.virginia.edu/~evans/cs655/readings/smalltalk.html
1•Tomte•10m ago•0 comments

Show HN: Terminal Tasks Open – 30 hard tasks, best model passes 67%

https://github.com/vettoai/terminal-tasks-open
2•dvaplima•10m ago•0 comments

Ex-Nvidia partner Megaspeed hit with U.S. Commerce Department export ban

https://www.upi.com/Top_News/US/2026/11/24/NVIDIA-partner-Megaspeed/1701795520063/
3•nephihaha•10m ago•0 comments

Show HN: LLM API cost and carbon calculator for your own token mix

https://somaai.earth/ai-footprint/llm-api-cost-calculator
1•guillermollopis•11m ago•0 comments

Is the Counter Ransomware Initiative Keeping Up with Ransomware?

https://www.lawfaremedia.org/article/is-the-counter-ransomware-initiative-keeping-up-with-ransomware
1•hn_acker•11m ago•0 comments

Waarm64 emulates the hardware in the browser, not an operating system

https://waarm64.com/
1•franze•11m ago•0 comments

Fraud Arena, a benchmark for AI on financial fraud

https://www.fraudarena.com/
1•ayanb9440•11m ago•0 comments

Loss of the Third Place

https://mattducharme.dev/posts/loss-of-the-third-place/
2•mattducharme•13m ago•0 comments

Show HN: VibeVigil – scan AI-built apps for leaked keys and open tables

https://vibevigil.com/
1•vibevigil•15m ago•0 comments

3% of "critical" software security bugs ever discovered found in the last month

https://twitter.com/NickADobos/status/2113430301183823901
1•Schlagbohrer•16m ago•0 comments

Session: Privacy Beyond End-to-End Encryption

https://alzze.xyz/posts/session-private-comunications/
1•alzzeat•16m ago•0 comments

Soviet Industrial Design

https://russiandesignmuseum.ru/objects/
3•oyster143•16m 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).