frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Uncle Sam wants in on Musk's €120M fight with Brussels

https://www.theregister.com/legal/2026/09/25/uncle-sam-wants-in-on-musks-120m-fight-with-brussels...
1•abdelhousni•1m ago•0 comments

Teaching agents to break distributed safety

https://antithesis.com/blog/2026/mutation-testing/
1•Klaster_1•2m ago•0 comments

Show HN: HocusFocus – Pomodoro timer and Lofi Music player for your Mac's notch

https://github.com/ravishchawla/hocus-focus
1•rvshchwl•3m ago•0 comments

The Small Web Is Tricky to Find

https://matduggan.com/the-small-web-is-tricky-to-find/
1•1317•4m ago•0 comments

A Proof of the Most Informative Boolean Function Conjecture

https://arxiv.org/abs/2609.24931
2•ur-whale•5m ago•0 comments

Woman Climbed Gate to Escape Notorious AI Hacker House After Repeated

https://www.techtimes.co.uk/agi-house-police-complaints-sexual-pressure-1808775
1•g-b-r•5m ago•1 comments

ChatGPT told Tumbler Ridge shooter how to avoid safeguards

https://www.cbc.ca/lite/story/9.7358031
2•colinprince•6m ago•0 comments

Robot Installations Outpaced Human Hiring at US Factories in 2025

https://www.bloomberg.com/news/newsletters/2026-09-25/robot-installations-outpaced-human-hiring-a...
3•ortusdux•8m ago•0 comments

Show HN: Xtriever – offline RAG retrieval on a phone

https://github.com/mirth/xtriever
1•hessdalenlight•8m ago•0 comments

The surprise winners from record-high diesel prices

https://www.washingtonpost.com/transportation/2026/09/25/surprise-winners-record-high-diesel-prices/
1•westurner•8m ago•0 comments

The World Needs Better Power Grids. Why Smaller May Be Better

https://www.nytimes.com/2026/09/25/business/power-grid-jonas-birgersson.html
1•gumby•8m ago•0 comments

Someone's attacking a critical 0-day RCE in F5 BIG-IP APM

https://www.theregister.com/security/2026/09/23/someones-attacking-a-critical-0-day-rce-in-f5-big...
1•Bender•11m ago•0 comments

CVE flood pushes Ubuntu onto weekly kernel release cycle

https://www.theregister.com/os-platforms/2026/09/24/cve-flood-pushes-ubuntu-onto-weekly-kernel-re...
2•Bender•12m ago•0 comments

AI boom could wipe 230M budget phones a year from the market

https://www.theregister.com/personal-tech/2026/09/24/ai-boom-could-wipe-230-million-budget-phones...
1•Bender•12m ago•0 comments

Show HN: Voice cloning for a TTS whose style encoder was never released

https://github.com/kdrkdrkdr/supertonic.embed
1•kdrkdrkdr•13m ago•0 comments

The Chasm: The Shape of Unfinished AI Codebases

http://jimmyhmiller.com/shape-of-unfinished-ai-codebases
1•surprisetalk•14m ago•0 comments

Show HN: TandemCode – practice coding interviews together in one live editor

https://www.tandemcode.space
1•naman0r•14m ago•0 comments

Escaping the Paradox of More

https://www.yorba.co/internet-less/escaping-the-paradox-of-more
1•schmudde•15m ago•0 comments

The Mafia may be keeping fentanyl out of Italy

https://www.economist.com/europe/2026/09/24/the-mafia-may-be-keeping-fentanyl-out-of-italy
1•geneticdrifts•16m ago•1 comments

Raspberry Pi Locks Down RAM Upgrades

https://hackaday.com/2026/09/22/raspberry-pi-locks-down-ram-upgrades/
1•airhangerf15•16m ago•0 comments

Nuclear Waste Accidentally Leaked at Pacific Coast Site

https://americanbuildout.com/radioactive-material-from-dormant-nuclear-plant-accidentally-leaks-a...
2•newyorkinfra•17m ago•1 comments

Grieving the Loss of Details

https://purplesyringa.moe/blog/grieving-the-loss-of-details/
2•ibobev•18m ago•1 comments

Test

https://www.reddit.com/r/CryptoRoyale/comments/1o97pz5/community_reminder_clan_war_invite_competi...
1•godlymod•18m ago•0 comments

Servers in Dawn-Dusk Orbit

https://www.johndcook.com/blog/2026/09/25/dawn-dusk-orbit/
1•ibobev•19m ago•0 comments

The Tudor Queens

https://analog-antiquarian.net/2026/09/25/the-tudor-queens/
1•ibobev•20m ago•0 comments

Active Directory Penetration Testing Playbook

https://0ut3r.space/2026/09/25/ad-pentest-playbook/
1•h0ek•26m ago•0 comments

A local Home Assistant door system I live with (and ways it can fail)

https://github.com/AntonisPsarras/guardian-system
1•antonispsarras•26m ago•0 comments

Lean Golf – Code golf but you're proving theorems in Lean

https://lean.golf
1•kurinikku•27m ago•0 comments

What Octavia Butler's Notebook Knew About Self-Efficacy

https://dawnwages.info/bajoran-engineer/2026/09/24/boldly-go-1-so-be-it-see-to-it/
1•mooreds•27m ago•0 comments

Show HN: Storia – A free voice-following teleprompter with mood and pacing cues

https://www.get-storia.com/
1•matteomosca•27m 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).