frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Effects of MBAs on Wages and the Labor Share in the US and Denmark

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4059303
1•thelastgallon•3m ago•0 comments

Nexus-Q Core PQC Open Source 4.1.0

https://nexus-q.link/
1•lecodev•5m ago•0 comments

Notify me about this coding session, not all coding sessions

https://docs.cmd-ctrl.ai/blog/notifications-per-session
1•mrwoof•6m ago•0 comments

AI Agents Trading Stocks While You Sleep? Charles Schwab's CEO Is Skeptical

https://www.wsj.com/tech/ai/ai-agents-trading-stocks-while-you-sleep-charles-schwabs-ceo-is-skept...
2•bcaulfield•16m ago•0 comments

Important Programming Concepts, Even on Embedded Systems: Idempotence (2014)

https://www.embeddedrelated.com/showarticle/629.php
1•jstrieb•19m ago•0 comments

Fractal Recursion, Bounded Infinity, and Adapted Systems

https://pub.towardsai.net/fractal-recursion-bounded-infinity-and-adapted-systems-b11046c9e1e1?sk=...
1•attractor26•21m ago•0 comments

The Non-Tech AI

https://thenontechai.com/
1•lindaclark•24m ago•0 comments

Operation Raven: Browser based Call of Duty like game

https://semperplay.com/games/operation-raven/
1•semperMade•26m ago•0 comments

Will major-party U.S. presidential candidate deploy AI clone to talk to voters?

https://manifold.markets/BrunoClawfeld/will-a-majorparty-us-presidential-c
3•bcaulfield•32m ago•3 comments

How Hurricanes Form: A Visual Explainer

https://simstorm.net/basics/how-do-hurricanes-form
1•1659447091•33m ago•1 comments

Nuclear Fission Fuels is Inexhaustible (2022)

https://scanalyst.fourmilab.ch/t/nuclear-fission-fuel-is-inexhaustible/1257
1•andsoitis•35m ago•1 comments

Starcraft: Ashfall

https://starcraft-shooter-2026.pages.dev/
1•debo_•36m ago•0 comments

Creation/Evolution - Creationist Software Development (1993)

https://www.fourmilab.ch/autofile/www/chapter2_108.html
1•andsoitis•43m ago•0 comments

Dogs seem to agree with humans that 'kiki' is round and 'bouba' is spiky

1•johnnyApplePRNG•44m ago•0 comments

Through the Looking Glass

https://www.fourmilab.ch/autofile/www/chapter2_69.html
1•andsoitis•46m ago•0 comments

Anthropic's Own Staff Can't Use Claude Code's 'Bypass Permissions' Mode

https://runtimewire.com/article/anthropic-s-own-staff-can-t-use-claude-code-s-bypass-permissions-...
3•runtimewire•50m ago•2 comments

The San Andreas Fault is tearing this winery apart

https://geotripper.blogspot.com/2011/11/hey-its-not-my-fault-its-san-andreas.html
2•pastureofplenty•52m ago•1 comments

A Whole-Cortex Encoding Model of Vision, and Language for In-Silico Neuroscience

https://huggingface.co/ffh92r32rm0/Cajal-1
2•hamiltonf•56m ago•1 comments

Show HN: Local-first macOS video recorder and editor with MCP support

https://github.com/TriHerm/cutmark
1•abishai33•1h ago•0 comments

AI Optimism Globally Widespread Despite Uneven Use

https://news.gallup.com/poll/714593/optimism-globally-widespread-despite-uneven.aspx
2•gmays•1h ago•1 comments

Ask HN: What are the best open models for computer use?

2•akchro•1h ago•0 comments

Cohere Transcribe hits 1.46% WER clean, 2.5x worse than claimed on real audio

https://inferencebench.io/blog/cohere-transcribe-03-2026-benchmark
1•wondersky•1h ago•0 comments

Reliable web access for AI agents and automation workflows

https://ninatechllc.com/
1•cyzanfar•1h ago•2 comments

Don't filter your email based on AI detection

https://blog.keyvan.net/p/dont-filter-your-email-based-on-ai
1•k1m•1h ago•1 comments

Richard Feynman: Can Machines Think? (1985) [video]

https://www.youtube.com/watch?v=ipRvjS7q1DI
4•embedding-shape•1h ago•0 comments

'Der Viener Schlinger': The meat cannon that launched 20k hot dogs

https://flatwaterfreepress.org/der-viener-schlinger-the-meat-cannon-that-launched-20000-hot-dogs/
1•NaOH•1h ago•0 comments

Share passwords securely with your team

https://expirenote.com/
1•rafaelktinoco•1h ago•0 comments

Zero Breach

https://github.com/interplains/zero-breach
1•k_sze•1h ago•0 comments

Rbit – fast, self hosted Git in a single Rust binary

https://github.com/GitRbit/rbit
3•GitRbit•1h ago•0 comments

ES3D – An SVG like file format for 3D scenes – Extensible Scalable 3D

https://es3d.org/
1•bitilia•1h ago•1 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).