frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

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).

CoreCollective for the next era of open collaboration for the Arm SW ecosystem

https://newsroom.arm.com/blog/introducing-corecollective
1•fork-bomber•58s ago•0 comments

Tax credits for solar panels are available, but the catch is you can't own them

https://www.npr.org/2026/02/20/nx-s1-5649474/solar-panel-tax-credit
1•toomuchtodo•1m ago•0 comments

Show HN: ShouldISwap – Compare crypto pair rates against historical averages

https://shouldiswap.com/
1•Herbyg•1m ago•0 comments

We Are the One and Only You

https://onefoottsunami.com/2026/02/25/we-are-the-one-and-only-you/
1•zdw•1m ago•0 comments

Dwitter Beta – Creative coding in 140 characters

https://korben.info/dwitter-beta-creative-coding-javascript.html
1•KilledByAPixel•1m ago•0 comments

Ghostly UV sparks light up forests as thunderstorms pass overhead

https://www.scientificamerican.com/article/ghostly-uv-sparks-light-up-forests-as-thunderstorms-pa...
1•mudil•2m ago•0 comments

Tell HN: I launched a focus app on Kickstarter – what I learned about friction

1•artzev_•4m ago•0 comments

CHERIoT Rust: Status update #0

https://rust.cheriot.org/2026/02/15/status-update.html
1•remexre•5m ago•0 comments

The CHIPS Act Spends $52.7B on Fabs but $0 on Defending Them from Ransomware

https://thehgtech.com/articles/semiconductor-ransomware-chips-act-2026.html
1•thehgtech•6m ago•0 comments

Show HN: Dance of Tal V2 – Dependency injection and lockfiles for AI agents

https://github.com/dance-of-tal/dance-of-tal
1•monarchjuno•7m ago•1 comments

Trump made tax day more complicated. ChatGPT and Claude can make it easier

https://www.vox.com/life/480317/trump-taxes-chatgpt-claude-turbotax
1•speckx•7m ago•0 comments

Turning a 2 ton robot into a 3D printer [video]

https://www.youtube.com/watch?v=peY_KK_nGc8
1•rmast•7m ago•0 comments

Show HN: Nosh – Fast native shell with built-in AI (natural language commands)

https://github.com/TryNosh/nosh
1•pouya-eghbali•7m ago•0 comments

"A file is an app" – Selfware, a unified file format for the Agent eramory)

https://github.com/floatboatai/selfware.md
3•floatboat•8m ago•1 comments

Show HN: Read the Room, a FOSS human bioindicator

1•soudk•9m ago•0 comments

Who will regulate Elon Musk and China's data centers in space?

https://restofworld.org/2026/orbital-data-centers-ai-sovereignty/
1•vinhnx•9m ago•0 comments

AncestorTree – Open-source genealogy for Vietnamese families

1•dttai•9m ago•0 comments

Retool silently removes self-hosted plans

https://community.retool.com/t/self-hosted-docs-now-state-enterprise-only/64586
2•assumptions•9m ago•0 comments

Was software a scarce commodity all along?

https://harmonique.one/posts/was-software-a-scarce-commodity-all-along
1•futurecat•9m ago•0 comments

Online Accusations in Guthrie Abduction Leave One Family 'Scared Numb'

https://www.nytimes.com/2026/02/25/us/nancy-guthrie-true-crime-accusations.html
1•duxup•11m ago•0 comments

AI Dev Tool Stack for 2026

https://qa.tech/blog/ai-dev-tool-stack-for-2026
2•Liriel•12m ago•1 comments

Show HN: Memograph CLI- A tool to diagnose 'memory failures' in AI agents

1•memograph•12m ago•1 comments

Show HN: Dola Seed 2.0 – AI video generator with multi-shot narrative control

https://dolaseed.site
1•yuni_aigc•12m ago•1 comments

Show HN: SeeVideo – Access Seedance 2.0 and Kling 3.0 without a subscription

https://seevideo.dance/
1•naxtsass•13m ago•0 comments

Jesse Jackson Paved the Way for a New US Left

https://jacobin.com/2026/02/jesse-jackson-death-left-sanders/
2•PaulHoule•13m ago•0 comments

We run 20M models in parallel on Ray

https://mixpeek.com/blog/ray-distributed-ml-pipeline-architecture
1•Beefin•13m ago•1 comments

HTP

1•MiachelC•13m ago•0 comments

Ask HN: What if your LLM violates a patent?

1•VikingCoder•13m ago•0 comments

When access to knowledge is no longer the limitation

https://idiallo.com/blog/access-to-knowledge-is-no-longer-a-limitation
1•Brajeshwar•14m ago•0 comments

The Absolute Insider Mess of Prediction Markets

https://philippdubach.com/posts/the-absolute-insider-mess-of-prediction-markets/
1•Brajeshwar•14m ago•1 comments