frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Stephen Wolfram's new philosophy book: What Ultimately Is There?

https://www.amazon.com/dp/1579551017
1•alok-g•1m ago•0 comments

Google's $500B bloodbath reflects the danger it faces from AI

https://www.economist.com/business/2026/10/29/googles-500bn-bloodbath-reflects-the-danger-it-face...
2•axiomdata316•3m ago•1 comments

The Importance of the Word "Cultivation"

https://johnoestmannmusic.com/the-importance-of-the-word-cultivation/
1•soundworlds•10m ago•0 comments

PFsense at 20. Plus and CE unified. Offline upgrades free.

https://www.netgate.com/blog/pfsense-at-20
1•djfergus•15m ago•0 comments

Do At-Proto Users Know This Is Public?

https://melaniekat.com/blog/public-on-pds/
2•rowbin•17m ago•0 comments

Show HN: Turn any GitHub account into a living city

https://caldera.social/gh
1•mjonesone•17m ago•1 comments

Cubo Search Engine – Agentic Search Engine Built for the Agentic Era

https://www.mycubo.site/
1•Albert78•20m ago•0 comments

Lifestreams' summarize operation, 30 years later

https://gist.github.com/yibie/d21d1ad945a11143731aea3c7ef5e7d6
1•oliverchan2024•24m ago•0 comments

Tell HN: X is opening any tweet link in a webview whether you press it or not

2•stillatit•24m ago•1 comments

Alex Honnold Interviews Astronaut Christina Koch [video]

https://www.youtube.com/watch?v=d3Yl1ssqXEM
1•consumer451•32m ago•1 comments

Arcan: A Farewell to Hubs

https://arcan-fe.com/2026/10/23/a-farewell-to-hubs/
1•ingenieroariel•41m ago•1 comments

OpenAI slashes funding target by $10B as tech anxieties mount

https://www.ft.com/content/7a3ad950-1b3b-4d9e-8c15-65a61ae6180f
4•zomtorg•50m ago•1 comments

Show HN: Blc – scheduled website blocker for macOS

https://github.com/BohdanPetryshyn/blc
1•BohdanPetryshyn•52m ago•0 comments

Welcome to GenZ University

https://genzuniversity.in/
1•jruohonen•53m ago•0 comments

Show HN: Governor, a firewall for AI agent spend and tool calls

https://bsvkey-governor-demo.fly.dev/
1•PDRGenerator•55m ago•0 comments

Travellar – the trips in your camera roll, as animated map videos

https://www.travellar.app/
2•gbresciano•1h ago•0 comments

Site Reliability Engineering (2nd Edition)

https://www.oreilly.com/library/view/site-reliability-engineering/9798341607675/
1•teleforce•1h ago•0 comments

System Zero

https://www.rightnowai.co/
2•OsamaJaber•1h ago•0 comments

Bee Cleansing Flight (What's It All About?)

https://beekeepinginsider.com/bee-cleansing-flight/
1•thunderbong•1h ago•0 comments

Black October: At least nine AI developer platforms breached this month

https://www.wiz.io/blog/black-october-for-ai-developer-platforms
3•acossta•1h ago•0 comments

Where AI agents' social boundaries break: 5 LLMs try to form a government

https://judgementlabs.app/blog/the-coalition-room
1•Jash271•1h ago•2 comments

Ask HN: What's the future like? For normies, will it still be apps and websites?

2•talmr•1h ago•3 comments

Behind the Scenes of Crypto's Biggest Nightmare: A Record-Breaking Cyber Heist

https://www.wsj.com/finance/currencies/behind-the-scenes-of-cryptos-biggest-nightmare-a-record-br...
1•jaredwiener•1h ago•1 comments

JWST reveals a distant galaxy that may let most of its ionizing radiation escape

https://phys.org/news/2026-10-jwst-reveals-distant-galaxy-ionizing.html
2•wglb•1h ago•1 comments

General Atomics Developing Flying Wing That Uses Hybrid-Electric Propulsion

https://www.twz.com/news-features/general-atomics-developing-strike-recon-flying-wing-called-next...
1•cisc•1h ago•0 comments

Show HN: To Honor Sir Patrick Stewart, Enjoy the TNG Episode Guessing Game

https://tng.episodle.com/
35•francisofascii•1h ago•12 comments

Live CVE Feed to Keep Your Agent Up to Speed

https://casco.com/cve
1•french_toast_fi•1h ago•0 comments

Googling Firebase got me a phishing page hosted by Google

https://volodymyr.smirnov.im/writing/google-firebase-phishing/
6•vsmim•1h ago•0 comments

Be a Loser

https://makemeacto.cc/be-a-loser/
6•larsfaye•1h ago•0 comments

China's CE-25A Electric Commuter Airliner Demonstrator Emerges

https://www.twz.com/air/chinas-ce-25a-electric-commuter-airliner-demonstrator-emerges-in-photos
2•cisc•1h 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).