frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•7mo 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•7mo 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•7mo 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).

STT orchestration: enhance your own transcription with SotA speaker diarization

https://www.pyannote.ai/blog/stt-orchestration
1•hbredin•1m ago•0 comments

LCS Engine – AI-powered investment education tool (MVP)

https://lcs-engine.streamlit.app/
1•ricorobertsjr74•1m ago•1 comments

Show HN: Detective Stories – Multiplayer "Dark Stories" game using web sockets

https://detective-stories.com/
1•detectivestory•1m ago•0 comments

Free Instagram Story Viewer for Anonymous Story Browsing

https://ig-stories-viewer.org
1•datahiker101•2m ago•0 comments

'Architects of AI' Named Time Magazine's Person of the Year

https://www.bbc.com/news/articles/cly01mdm577o
2•onemoresoop•4m ago•0 comments

Yeo – an experimental dotfiles snapshot tool

https://github.com/techne98/yeo
1•fixedprog•4m ago•0 comments

Cybercriminals exploiting ChatGPT and Grok chats to spread AMOS malware to Macs

https://techoreon.com/cybercriminals-exploit-chatgpt-grok-amos-malware-macos/
1•GeorgeWoff25•5m ago•0 comments

Earthworm Invaders

https://ecosystemsontheedge.org/earthworm-invaders/
1•thunderbong•5m ago•0 comments

Mandated or banned? Either way, women lose in the veil debate

https://globalvoices.org/2025/11/17/mandated-or-banned-either-way-women-lose-in-the-veil-debate/
1•PaulHoule•5m ago•0 comments

What makes a game tick? Part 8 – Data Driven Multi-Threading Implementation

https://mropert.github.io/2025/12/11/making_games_tick_part8/
1•ibobev•7m ago•0 comments

What if we designed AI to amplify human capability instead of constrain it?

1•buttersmoothAI•7m ago•0 comments

The private space company building satellites–in an old San Francisco shipyard

https://www.fastcompany.com/91456505/astranis-microgeo-satellites-john-gedmark
1•stn8188•7m ago•0 comments

Show HN: I built an app to repurpose YouTube videos for my content funnel

https://nebly.app/
1•jxywilliams•7m ago•0 comments

Show HN: The Silicon Stoic – Visualizing AI "Pain" as Computational Friction

https://protocol-omega-wkkxhyuyvcqfoa4oxq3fx6.streamlit.app/
1•IkanRiddle•9m ago•1 comments

Click Here to Try a WebGL Snow Squall Driving Simulation – NOAA

https://www.weather.gov/ctp/snowsquall
1•calvinmorrison•11m ago•0 comments

When doomed stubs attack: blockchain voting and proof of work

https://bitfieldconsulting.com/posts/when-doomed-stubs-attack
1•gus_leonel•11m ago•0 comments

Hacking the Meatmeet BBQ Probe

https://www.softwaresecured.com/post/hacking-the-meatmeet-bbq-probe---part-1
1•voxadam•11m ago•1 comments

Deep Dive in Java vs. C++ Performance

https://johnnysswlab.com/deep-dive-in-java-vs-c-performance/
1•ibobev•12m ago•0 comments

Weak Derivatives

https://www.johndcook.com/blog/2025/12/10/weak-derivatives/
2•ibobev•12m ago•2 comments

Don't Build a General Purpose API (4 Years Later)

https://max.engineer/server-informed-ui-p2
3•furkansahin•12m ago•0 comments

It Will Soon Be Curtains for the Movie Theater

https://www.wsj.com/opinion/it-will-soon-be-curtains-for-the-movie-theater-70c0f7af
1•bookofjoe•13m ago•2 comments

PythoC: A new way to generate C code from Python

https://www.infoworld.com/article/4101101/pythoc-a-new-way-to-generate-c-code-from-python.html
2•pm2222•13m ago•0 comments

Vibe coding for designers: my actual process

https://www.antonsten.com/articles/vibe-coding-for-designers/
1•janpio•16m ago•0 comments

The Webmaster's Return: Headless Shopify with Python and Jekyll

https://mikelev.in/futureproof/headless-shopify-python-jekyll/
1•indigodaddy•18m ago•0 comments

Ask HN: Has anyone been able to renew their IEEE this month?

2•chrisaycock•18m ago•0 comments

A Developer Accidentally Found CSAM in AI Data. Google Banned Him for It

https://www.404media.co/a-developer-accidentally-found-csam-in-ai-data-google-banned-him-for-it/
10•markatlarge•18m ago•0 comments

Show HN: PackageFlow – Visual workflow automation for developers (Tauri/Rust)

https://github.com/runkids/PackageFlow
1•runkids•18m ago•0 comments

A visual editor for the Cursor Browser

https://cursor.com/blog/browser-visual-editor
4•meetpateltech•21m ago•0 comments

A Proposed Open Manifesto for AI Agents Touching Production Systems

https://aiagentmanifesto.org/draft/
1•maaydin•21m ago•1 comments

Spurious Correlations: Eng degrees vs. searches for nearby "dollar stores"

https://tylervigen.com/spurious/correlation/2354_bachelors-degrees-awarded-in-engineering_correla...
1•oatsandsugar•21m ago•0 comments