frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

When you can't escape an interface, it institutionalises you

https://timmb.com/when-you-cant-escape-an-interface/
1•timmb•7m ago•0 comments

Show HN: AI Agent Team Framework

https://github.com/danilocaffaro/ai-agent-team-guide
1•caffaroai•8m ago•0 comments

Periodic Table

https://www.periodicspiral.com
1•downboots•8m ago•0 comments

Show HN: We analyzed 312 landing pages – most navigation flows are broken

1•epic_ai•9m ago•1 comments

There Are No Psychopaths

https://aeon.co/essays/psychopathy-is-a-zombie-idea-why-does-it-cling-on
1•limbicsystem•10m ago•0 comments

First known satellite image of Ayatollah Ali Khamenei's compound in Tehran

https://twitter.com/trbrtc/status/2027703248887427576
1•us321•15m ago•0 comments

Show HN: Prompt-run – run .prompt files against any LLM from the terminal

https://github.com/Maneesh-Relanto/Prompt-Run
1•maneeshthakur•16m ago•0 comments

Show HN: Windows Taskbar Monitor for Claude Code Usage (Rust, Open Source)

https://github.com/CodeZeno/Claude-Code-Usage-Monitor
1•codezeno•16m ago•1 comments

Who Is the Kimwolf Botmaster "Dort"?

https://krebsonsecurity.com/2026/02/who-is-the-kimwolf-botmaster-dort/
1•todsacerdoti•16m ago•0 comments

Show HN: hosted or self-hosted open-source Intercom alternative, Convex Backend

https://github.com/opencom-org/opencom
1•jackjayd•17m ago•0 comments

Lenna attended the 50th Anniversary IS&T conference

https://www.lenna.org/lenna_visit.html
1•Kiboneu•19m ago•1 comments

Cloudflare: Asynchronous Stale-While-Revalidate

https://developers.cloudflare.com/changelog/post/2026-02-26-async-stale-while-revalidate/
2•tosh•20m ago•0 comments

Trump announces 'major combat operation' in Iran

https://apnews.com/live/live-updates-israel-iran-february-28-2026
1•josephwegner•21m ago•0 comments

NASA announces Artemis III mission no longer aims to send humans to moon

https://www.theguardian.com/science/2026/feb/27/nasa-changes-delays-moon-missions
1•edward•21m ago•0 comments

What to Know About the U.S. Attacks on Iran

https://www.nytimes.com/2026/02/28/world/middleeast/iran-attacks-what-to-know.html
1•JumpCrisscross•22m ago•1 comments

Move over, Apple: Meet alternative app stores available in the EU and elsewhere

https://techcrunch.com/2026/02/22/move-over-apple-meet-the-alternative-app-stores-available-in-th...
1•taubek•23m ago•0 comments

How to Remove ChatGPT from Apple Intelligence

https://www.trustedreviews.com/how-to/remove-chatgpt-apple-intelligence-4580438
2•drcongo•27m ago•0 comments

Sync your coding agent activity across sessions and users

https://github.com/mubit-ai/codaph
1•aperi•28m ago•0 comments

How I Met My Wife (1994)

https://www.newyorker.com/magazine/1994/07/25/how-i-met-my-wife
1•Wowfunhappy•31m ago•0 comments

Ask HN: Why spec-driven development when code IS spec?

1•kikkupico•33m ago•5 comments

Show HN: H-CLI – Manage network infrastructure with natural language

https://github.com/h-network/h-cli
1•h-network•36m ago•0 comments

The week when AI changed everything

https://www.cnn.com/2026/02/28/business/ai-week-anthropic-nvidia-block
1•edward•37m ago•0 comments

Show HN: EEGFrontier – A compact open-source EEG board using ADS1299

https://github.com/TheusHen/EEGFrontier
1•TheusHen•38m ago•0 comments

How to downgrade from macOS 26 Tahoe on a new Mac

https://arstechnica.com/gadgets/2026/02/how-to-downgrade-from-macos-26-tahoe-on-a-new-mac/
2•signa11•43m ago•1 comments

Show HN: Core – Constitutional governance runtime for AI coding agents

https://github.com/DariuszNewecki/CORE
1•DNewecki•43m ago•0 comments

Addressing AI-slop in security reports

https://github.com/apache/logging-log4j2/discussions/4052
2•birdculture•44m ago•0 comments

Hypothetical nuclear attack that escalated Pentagon's showdown with Anthropic

https://www.washingtonpost.com/technology/2026/02/27/anthropic-pentagon-lethal-military-ai/
1•pseudolus•45m ago•1 comments

The Great Stink

https://en.wikipedia.org/wiki/Great_Stink
1•thinkingemote•46m ago•0 comments

We Chose SQLite

https://curling.io/blog/why-we-chose-sqlite
1•enz•49m ago•0 comments

We the Bacteria. Notes Toward Biotic Architecture

https://we-make-money-not-art.com/we-the-bacteria-notes-toward-biotic-architecture/
2•thinkingemote•49m ago•0 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•9mo 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•9mo 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•9mo 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).