frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The Emotional Cost of AI-Assisted Coding

1•northfield27•2m ago•0 comments

UK to send drones, jets and warship to join defensive mission securing Hormuz

https://www.reuters.com/world/uk-send-drones-jets-warship-join-defensive-mission-securing-strait-...
1•geox•2m ago•0 comments

EU iPhones Get AirPod Pairing and Notifications for Third-Party Wearables

https://www.macrumors.com/2026/05/11/ios-26-5-eu-third-party-wearable-changes/
1•vrganj•4m ago•0 comments

The hardware isn't broken, the documentation is

https://essenceia.github.io/thoughts/broken_doc/
1•random__duck•6m ago•1 comments

Anthropic's Computer Use API: How AI Is Navigating Your Desktop Now

https://www.aigridnews.com/anthropics-computer-use-api-how-ai-is-navigating-your-desktop-now
1•rolph•11m ago•0 comments

Anthropic publicly releases AI tool that can take over the ' mouse cursor(2024)

https://arstechnica.com/ai/2024/10/anthropic-publicly-releases-ai-tool-that-can-take-over-the-use...
1•rolph•14m ago•0 comments

Show HN: Duckflix, an open-source self-hosted media streaming platform

https://github.com/duckflixapp/duckflix
1•patakxd•16m ago•0 comments

The Soul in the Machine

https://netwars.pelicancrossing.net/2026/05/08/the-soul-in-the-machine/
1•ColinWright•16m ago•0 comments

Waiting for Joe

http://essaysnthings.blogspot.com/2008/05/waiting-for-joe.html
1•JumpCrisscross•17m ago•0 comments

Anthropic says newest lawyer tools are 'like giving an engineer a legal degree'

https://www.businessinsider.com/anthropic-expands-legal-ai-tools-claude-cowork-2026-5
1•cebert•18m ago•0 comments

Kagi Snaps

https://daringfireball.net/linked/2026/05/12/kagi-snaps
1•frizlab•19m ago•0 comments

XCA: Breaking Confidential Computing via the Interconnect

https://xca-attacks.github.io/overview/
1•pipogipo•19m ago•0 comments

State of Code Developer Survey report [pdf]

https://www.sonarsource.com/state-of-code-developer-survey-report.pdf
2•b-man•21m ago•0 comments

Curating cross-medium galleries (books, films, music, art, photos, fashion)

https://tryfractart.com/
1•helenxyz•26m ago•0 comments

Do teachers need advanced degrees?

https://www.cremieux.xyz/p/do-teachers-need-advanced-degrees
3•renameme•27m ago•3 comments

Show HN: GIF Pile. a site to make piles of GIFs

https://gifpile.com/
1•FatCat1979•28m ago•0 comments

I've been running an AI editorial pipeline on the Iran-US war for 75 days

https://worldwarwatcher.com
1•tamarru•28m ago•0 comments

Golden Speakers: Building a native-like accent in your 2nd/3rd/4th+ language

https://loxai.tech
1•audreyfei•29m ago•1 comments

Supermicro and the ghost of Chinagate: The evolution of a multinational scam

https://thehill.com/opinion/international/5859528-supermicro-ai-servers-china-smuggling/
1•tart-lemonade•30m ago•0 comments

What Satellite Images Reveal About Iran's Attacks on U.S. Bases [video]

https://www.youtube.com/watch?v=JRnoi3repjo
2•Teever•34m ago•0 comments

Russian ship that sank may have been carrying nuclear reactors to North Korea

https://www.theguardian.com/world/2026/may/12/russian-ship-ursa-major-sank-spain-nuclear-reactors...
3•athousandsteps•34m ago•0 comments

Open Vibe – an interactive web dev course in Claude Code

https://openvibe.sh/
1•matijash•34m ago•1 comments

AI Strategy Has a Blind Spot: The Network

https://www.kentik.com/blog/your-ai-strategy-has-a-blind-spot-the-network/
1•oavioklein•34m ago•0 comments

Shame them, shun them, ban them, beat them

https://www.experimental-history.com/p/shame-them-shun-them-ban-them-beat
1•pavel_lishin•35m ago•0 comments

Check Startup Names for Availability

https://nameclaim.xyz
1•chaghighat•37m ago•0 comments

Seriously, Give Kagi a Try

https://daringfireball.net/linked/2026/05/12/seriously-give-kagi-a-try
3•frizlab•37m ago•3 comments

Intercom Becomes Fin

https://www.intercom.com/blog/today-intercom-becomes-fin/
3•tjwds•38m ago•0 comments

Meta employees protest against mouse tracking tech at US offices

https://www.reuters.com/sustainability/society-equity/meta-us-employees-organize-protest-against-...
13•delichon•41m ago•4 comments

How a 150-year-old Japanese workshop survived the age of slop and distraction

https://bigthinkmedia.substack.com/p/how-a-small-shop-in-kyoto-connects
1•Duanemclemore•41m ago•0 comments

Snitches Get 202'd

https://github.com/agudulin/simple-proxy
1•sagod•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).