frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

An exhaustive review of design tool hover areas

https://tldraw.dev/blog/a-review-of-design-tool-hover-areas
1•steveruizok•42s ago•0 comments

Show HN: Putting AI in the loop for embedded dev

https://www.electronicsconsult.com/blog/ai-assisted-hardware-in-the-loop-for-embedded-linux
1•OOHehir•44s ago•0 comments

Show HN: Pave – CLI for Managing Path

https://github.com/microsoft/pave
2•cpendery•1m ago•0 comments

NASA building the first nuclear reactor-powered spacecraft. How will it work?

https://www.technologyreview.com/2026/04/14/1135848/nasa-nuclear-powered-spacecraft/
1•gnabgib•1m ago•0 comments

A simple test-time method that beats Claude Mythos on Terminal-Bench

https://llm-as-a-verifier.notion.site
1•jackykwok•1m ago•1 comments

Synctera acquires compliance startup Cable

https://www.axios.com/pro/fintech-deals/2026/04/14/synctera-compliance-startup-cable-acquisition
1•thatdrew•1m ago•0 comments

Can Michigan Become the U.S. Drone Capital?

https://www.nytimes.com/2026/04/14/business/michigan-drone-capital.html
1•rmason•2m ago•1 comments

AgentFM – A single Go binary that turns idle GPUs into a P2P AI grid

https://github.com/Agent-FM/agentfm-core
1•s4saif•3m ago•0 comments

Demoralize Your Teams Quickly and Efficiently with Micromanagement (2010)

https://www.stellman-greene.com/2010/11/29/demoralize-your-teams-quickly-and-efficiently-with-mic...
1•downbad_•5m ago•1 comments

Whop: The Gen-Z Platform That Wants to Be Your Bank, Broker and Business

https://www.forbes.com/sites/boazsobrado/2026/04/10/one-stop-whop-the-gen-z-platform-that-wants-t...
1•rmason•5m ago•0 comments

GitHub gave webhook secrets away in webhook call

1•time4tea•6m ago•0 comments

Mississippi is running out of liquor, and it's the state's fault

https://www.washingtonpost.com/nation/2026/04/12/mississippi-liquor-sales-breakdown/
1•paulpauper•7m ago•1 comments

Mamdani Plans to Open City-Owned Grocery Store in East Harlem

https://www.nytimes.com/2026/04/12/nyregion/mamdani-city-owned-grocery-store-la-marqueta.html
3•paulpauper•8m ago•0 comments

Moonsteading

https://marginalrevolution.com/marginalrevolution/2026/04/moonsteading.html
1•paulpauper•8m ago•0 comments

The Great Pyramid of Giza and the Speed of Light

https://www.johndcook.com/blog/2026/04/09/pyramid-speed-of-light/
1•ibobev•10m ago•0 comments

Why Is France Moving from Microsoft Windows to Linux

https://qazinform.com/news/why-is-france-moving-from-microsoft-windows-to-linux-8887c4
2•losgehts•12m ago•0 comments

Aadam Jacobs Collection at the Live Music Archive: Free Audio

https://archive.org/details/aadamjacobs
1•LaSombra•14m ago•0 comments

YouTube Device Partner Summit 2026

https://www.collabora.com/news-and-blog/news-and-events/youtube-device-partner-summit-2026.html
2•losgehts•16m ago•0 comments

Show HN: Speech to Calorie Tracker

https://github.com/crocsarecool/nutrition-app
1•raunaqvaisoha•18m ago•1 comments

Event Order

https://www.quirksmode.org/js/events_order.html#link4
1•aziaziazi•19m ago•0 comments

RGC-Basic Update: Easy, Modern Basic in the Browser Has Sprites Now

https://retrogamecoders.com/rgc-basic-update-april-2026/
1•ibobev•19m ago•0 comments

Amiga XSysInfo v0.6

https://github.com/reinauer/xSysInfo/releases/tag/release_v0.6
1•doener•19m ago•0 comments

Generalist AI Doesn't Scale

https://www.daemonology.net/blog/2024-04-06-Generalist-AI-doesnt-scale.html
1•colinhb•19m ago•0 comments

Show HN: Quant Job Market Visualizer

https://quant.kadoa.com/
1•hubraumhugo•19m ago•0 comments

Crates.io Trusted Publishing

https://crates.io/docs/trusted-publishing
1•jcbhmr•20m ago•0 comments

Online ZPL Viewer

https://labelary.com/viewer.html
1•gregsadetsky•20m ago•0 comments

Accessible Modals: How to Build Dialogs That Don't Trap or Exclude Users

https://getaccessguard.com/posts/accessible-modals-how-to-build-dialogs-that-dont-trap-confuse-or...
1•chille87•20m ago•0 comments

Trusted access for the next era of cyber defense

https://openai.com/index/scaling-trusted-access-for-cyber-defense/
2•surprisetalk•21m ago•0 comments

Competition is not bad, its only bad if you have raised a lot of money

https://docsalot.dev/blog/why-im-building-yet-another-docs-product
1•fazkan•21m ago•0 comments

TRSE Is Now in the Browser – No Install, No Setup, Just Retro Coding

https://retrogamecoders.com/trse-now-online/
1•ibobev•22m ago•0 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).