frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ask HN: How do you decide to cut scope when AI makes it so easy to add?

1•harlequinetcie•2m ago•0 comments

Virtual3D – Vulkan 3D Engine&Editor

https://starsigndev.itch.io/virtual3d
1•antonyrobwells•5m ago•0 comments

Taking Back the Copilot Button

https://smarmelling.com/posts/taking-back-the-copilot-button.html
2•smarmelling•11m ago•0 comments

Morstdio: Baremetal Morse Code I/O

https://gbkorr.github.io/r-bites/morstdio/morstdio.html
1•austinallegro•12m ago•0 comments

Australia Set to Sue Facebook, TikTok in Child-Safety Push

https://www.bloomberg.com/news/articles/2026-10-20/australia-to-sue-facebook-tiktok-for-alleged-b...
2•snikolaev•13m ago•0 comments

The Role of Exposition in the Future of Mathematics – Grant Sanderson [video]

https://www.youtube.com/watch?v=PtCPLLuMK1o
1•num42•20m ago•0 comments

A free Omarchy course: 25 modules and a capstone

https://stevinator.com/courses/omarchy/
1•smanookian•23m ago•1 comments

Why elevators keep anesthesia professionals up at night [4 min] [video]

https://www.youtube.com/watch?v=N4VGVEdN458
2•privacyishuman•24m ago•0 comments

Friction as a Feature

https://emilkowal.ski/ui/friction-as-a-feature
1•phartenfeller•26m ago•0 comments

Okay to share a free tool for field techs?

https://woextractor.com/
1•Syberscream•30m ago•1 comments

GitHub: Some Git over HTTPS may temporarily require authentication

https://github.blog/changelog/2026-10-19-some-git-over-https-may-temporarily-require-authentication/
3•csmantle•39m ago•0 comments

I turned a song into a Machine [video]

https://www.youtube.com/watch?v=6nULQQQZcvE
1•rslice•41m ago•0 comments

Pax8 Launches 8os

https://www.pax8.com/en-us/news-post/pax8-launches-8os-the-first-agentic-workforce-operating-syst...
1•simonjgreen•42m ago•0 comments

Quantum error correction well below the color code threshold [pdf]

https://cdn.prod.website-files.com/669960f53cd73aedb80c8eea/6ad6013f8ae0364b2cd03c53_c8c5526bc884...
1•unprovable•44m ago•0 comments

Field access in a Rust debug REPL, without reflection

https://github.com/100010/pry-rs
1•yoheisenju•45m ago•1 comments

Textus – WYSIWYG Markdown editor with built-in AI writing tools

https://textus.catvinci.com/
1•cobychapple•45m ago•0 comments

Ask HN: How to get the most intelligence out of your agents?

2•thechairman12•46m ago•1 comments

Training a Search-R1 Agent with Flame

https://xflops.io/blog/training-search-r1-with-flame/
1•k82cn•48m ago•0 comments

Where your money grows fastest

https://crazysoftwarecoder.github.io/where-it-grows/
1•ashyferny•48m ago•0 comments

Owners who spend more time close to their cats tend to have more positive moods

https://www.eurekalert.org/news-releases/1148065
3•gmays•53m ago•0 comments

Show HN: Visual heat map of AI news updated hourly

https://ai-news.jagular.io
1•jnaina•59m ago•0 comments

I put my cell number on my startup's homepage

1•civitasinnovare•1h ago•1 comments

Superintelligence Strategy (2025)

https://www.nationalsecurity.ai
2•reasonableklout•1h ago•1 comments

Americans Are Spending More Money to Drive Worse Cars

https://www.theatlantic.com/technology/2026/10/americans-not-buying-electric-cars/689071/
18•fortran77•1h ago•26 comments

Apple's OS release and how it impacts Identity Graphs

https://cunderwood.dev/2026/10/20/apples-os-release-and-how-it-impacts-identity-graphs/
1•abtestdev•1h ago•0 comments

Why do some data grids show blank rows during scrolling?

https://comparegrids.com/articles/article-why-grids-show-blank-rows
1•davidvela•1h ago•0 comments

Show HN: TMPlayer, a TV player for the videos in your own Telegram chats

https://github.com/dracu-lah/TMPlayer
1•nevilkrishnak•1h ago•0 comments

Advancing Fault-Tolerant Quantum Computing with GPU-Accelerated Simulation

https://nvidia.github.io/cuda-quantum/blogs/blog/2026/10/19/jupiter-magic-state-simulation/
1•wondersky•1h ago•0 comments

FaderBuddy – Plug-and-play motorized faders for ESPHome and more

https://github.com/scottbez1/FaderBuddy
1•foltik•1h ago•0 comments

U.S. Political Money Funnels to Indian Bots to Lure Voters

https://www.nytimes.com/2026/10/19/business/michigan-primary-disinformation-campaign.html
4•grandpajoey•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).