frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

How A Boeing 737 MAX Survived a Nosedive Traveling at the Speed of Sound

https://www.wsj.com/business/airlines/how-a-boeing-737-max-survived-a-nosedive-traveling-at-the-s...
1•thm•1m ago•0 comments

Pillage First Ask question later

https://pillagefirst.com/
1•ssummoner001•4m ago•0 comments

An Update on Orion for Linux and Windows

https://blog.kagi.com/update-orion-linux-windows
1•pentagrama•5m ago•0 comments

People will be AI's app layer

https://twitter.com/koopuluri/status/2106244337814364332
1•koopuluri•12m ago•0 comments

Where AI learns to do real work

https://labelbox.com/
1•measurablefunc•19m ago•0 comments

Cua Spaces

https://spaces.cua.ai/
1•handfuloflight•21m ago•0 comments

Show HN: Copy and Find Symbols

https://symbolsymbol.com/
1•artiomartiom•21m ago•0 comments

We Can't Let My Former Venture Capital Colleagues Buy Off Our Democracy(NYTimes)

https://www.nytimes.com/2026/06/11/opinion/silicon-valley-ai-politics.html
3•ajoy•22m ago•0 comments

A denser layout for the Claude desktop app, 2-column sidebar and project colours

https://github.com/mohannad789/claude-desktop-skin
2•mohannad7•23m ago•0 comments

Show HN: Offline NHTSA VIN decoder, verified against NHTSA's own SQL

https://github.com/AIKitLLC/nhtsa-edge-api
2•tuannx•32m ago•0 comments

Windows on Itanium also provided for hot-patching, in an even simpler way

https://devblogs.microsoft.com/oldnewthing/20261001-57/?p=112747/
2•zdw•34m ago•0 comments

Stable Matching Problem

https://en.wikipedia.org/wiki/Stable_matching_problem
1•azhenley•35m ago•0 comments

Open source SDK to build Muse gadgets

https://github.com/facebookincubator/muse-gadget-sdk
1•kristianpaul•35m ago•0 comments

What if AI worked at 1.000.000 tokens per seconds?

https://www.echohive.ai/one-million-tokens-per-second
2•echohive42•36m ago•0 comments

Why It's Time to Rename Cybersecurity Awareness Month

https://semgrep.dev/blog/2026/rename-cybersecurity-awareness-month/
1•Garbage•37m ago•0 comments

Pi Durable, as Statecharts

https://scxmljs.tinyactors.dev/demos/pi-durable/
1•handfuloflight•38m ago•0 comments

Backend programming languages ranked by LLM recommendations

https://preseason.ai/rankings/devtools/backend-language
1•thedreammachine•38m ago•0 comments

Why I started (and stopped) making games (2003)

https://austinhenley.com/blog/makinggames.html
1•azhenley•38m ago•0 comments

We ported the original Doom to SQL

https://cedardb.com/blog/sqldoom/
1•shscs911•41m ago•0 comments

New Mexico wants Meta to pay $40B in penalties after data privacy trial

https://finance.yahoo.com/media-advertising/articles/mexico-wants-meta-pay-40-231305611.html
2•smurda•46m ago•1 comments

Canada, EU plan to link next-gen payment systems, easing transactions

https://www.theglobeandmail.com/politics/article-canada-eu-link-payment-systems-joint-statement-s...
5•MadrasTh0rn•49m ago•0 comments

Should you give the scarcest things to the fastest coders?

https://digitalseams.com/blog/should-you-give-the-scarcest-things-to-the-fastest-coders
1•bobbiechen•58m ago•0 comments

NVX: An Ultra-Light Micro-VM Sandbox from Microsoft

https://github.com/microsoft/nvx
2•jeswin•1h ago•0 comments

Vim-pi-chat: make Vim a pi-powered editor

https://github.com/galeone/vim-pi-chat
1•me2too•1h ago•0 comments

SWC stops accepting external PRs due to AI-generated content

https://twitter.com/swc_rs/status/2105505428893544847
4•csmantle•1h ago•1 comments

Everything Got Worse After 2020

https://www.youtube.com/watch?v=Do8PuebNSyY
4•cable2600•1h ago•0 comments

Code Must Be Faster

https://www.monaddle.com/blog/your-code-must-be-faster
2•roflc0ptic•1h ago•0 comments

Radio signal detected for first time from a planet outside our solar system

https://www.cnn.com/2026/10/02/science/radio-signal-detection-exoplanet-beta-pictoris-b
4•slater•1h ago•0 comments

Mars' North Polar Ice Is Much Cleaner Than Scientists Thought

https://scitechdaily.com/mars-north-polar-ice-is-much-cleaner-than-scientists-thought/
1•snarky-comments•1h ago•0 comments

Extra Big Ass Intelligence

https://www.extrabigassintelligence.com/
15•34679•1h ago•3 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).