frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Sruthi Chandran Elected Debian Project Leader

https://bits.debian.org/2026/04/dpl-elections-2026.html
1•tapanjk•34s ago•0 comments

Every local SEO playbook is built on proximity, AI overviews ignore it completly

https://webmatrices.com/post/every-local-seo-playbook-is-built-on-proximity-ai-overviews-ignore-i...
1•bishwasbh•1m ago•0 comments

Ars Technica: Our newsroom AI policy

https://arstechnica.com/staff/2026/04/our-newsroom-ai-policy/
2•zdw•6m ago•1 comments

Computing in the Era of Doom: What Were PCs Like in 1993?

https://www.ahalbert.com/reviews/technology/2026/04/20/black-book-doom.html
1•pjmlp•10m ago•0 comments

High Street mini-marts selling cocaine, cannabis and prescription drugs

https://www.bbc.co.uk/news/articles/c62l429w2pko
1•vinni2•11m ago•0 comments

A disabled kea parrot is the alpha male of his circus

https://www.cell.com/current-biology/fulltext/S0960-9822(26)00259-9
1•zdw•12m ago•0 comments

Ford pivoting to catch up with his real competitor: China's BYD

https://finance.yahoo.com/sectors/technology/articles/ford-ceo-says-tesla-doesn-180115430.html
1•KnuthIsGod•14m ago•0 comments

Bloom filters: the niche trick behind a 16× faster API

https://incident.io/blog/bloom-filters
2•crcastle•24m ago•0 comments

Cursor and SpaceX: In search of a complete loop

https://kwokchain.com/2026/04/23/cursor-and-spacex-in-search-of-a-complete-loop/
1•borisjabes•26m ago•0 comments

Show HN: Viscacha - A crashsafe, zero infra job system for funcs/AI pipelines

https://github.com/skylarm-b/viscacha
1•SkyguyMB•27m ago•0 comments

House lawmakers get a chilling demo of 'jailbroken' AI

https://www.politico.com/news/2026/04/22/ai-chatbots-jailbreak-safety-00887869
1•0in•34m ago•1 comments

Anthropic has surged to a trillion-dollar valuation on secondary markets

https://www.businessinsider.com/anthropic-trillion-dollar-valuation-on-secondary-markets-2026
1•Growtika•34m ago•0 comments

I am building a cloud

https://crawshaw.io/blog/building-a-cloud
20•bumbledraven•36m ago•3 comments

Half of AI health answers are wrong even though they sound convincing

https://theconversation.com/half-of-ai-health-answers-are-wrong-even-though-they-sound-convincing...
1•KnuthIsGod•36m ago•0 comments

Iran's IRGC warns it may cut undersea internet cables in Persian Gulf

https://www.msn.com/en-in/money/news/iran-s-irgc-warns-it-may-cut-undersea-internet-cables-in-per...
2•KnuthIsGod•37m ago•2 comments

Open source is not the problem, but its misuse by corporations

https://www.heise.de/en/blog/Open-source-is-not-the-problem-but-its-misuse-by-corporations-112667...
1•goloroden•38m ago•0 comments

ChatGPT for Clinicians

https://twitter.com/thekaransinghal/status/2047091103170785324
1•stenlix•39m ago•0 comments

MacBook Neo and How the iPad Should Be

https://craigmod.com/essays/ipad_neo/
1•jen729w•40m ago•0 comments

'Intelligence may be scalable, but accountability is not'

https://www.msn.com/en-us/news/technology/intelligence-may-be-scalable-but-accountability-is-not-...
1•galaxyLogic•40m ago•0 comments

DragonRuby's Seventh Year – Where We Started and Where We're Going

https://dragonruby.itch.io/dragonruby-gtk/devlog/1497015/dragonrubys-seventh-year-where-we-starte...
3•doppp•44m ago•0 comments

Pokemon Red and the Evolution of FSM

https://www.makonea.com/en-US/blog/Pokemon-Red-and-the-Evolution-of-FSM
1•jdw64•45m ago•0 comments

Hackers tricked Sri Lanka's Treasury into sending $2.5M to the wrong account

https://www.ft.lk/top-story/Treasury-rocked-by-2-5-m-fraud/26-791019
1•oshanz•47m ago•0 comments

MartinLoop – The control plane for autonomous AI agents

https://github.com/Keesan12/martin-loop
1•martinloop•47m ago•0 comments

In the age of AI, why do Australian company boards have few technology experts?

https://theconversation.com/in-the-age-of-ai-why-do-australian-company-boards-have-so-few-technol...
1•indynz•59m ago•1 comments

Low Contrast UI Pandemic

1•mr-pink•1h ago•1 comments

A Boy That Cried Mythos: Verification Is Collapsing Trust in Anthropic

https://www.flyingpenguin.com/the-boy-that-cried-mythos-verification-is-collapsing-trust-in-anthr...
23•taejavu•1h ago•4 comments

Choose Boring Technology

https://mcfunley.com/choose-boring-technology
1•doppp•1h ago•1 comments

Show HN: MailScrub – terminal UI for bulk Gmail unsubscribing

https://github.com/brooksc/MailScrub
1•brooksc•1h ago•0 comments

Search, Experience, Credence – classification of resources

https://en.wikipedia.org/wiki/SEC_classification_of_goods_and_services
1•downboots•1h ago•0 comments

Roast my game: Photobomb mobile multiplayer party game

https://www.photobomb.online/
1•alhwyn•1h ago•1 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

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