frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

WordPress Migration Companies and Agencies to Plan Your Move in 2027

https://gitnation.com/contents/wordpress-migration-services
2•katyadrozd•7m ago•0 comments

Virtuality as the Result of Subtraction

https://medium.com/@smoking2man/virtuality-as-the-result-of-subtraction-924610e42541
2•Aldus551•7m ago•0 comments

Fixing Google's Feedburner problem, and caching that half works

https://joshua.hu/fixing-google-feedburner-cache-problem-atom-rss
1•ingve•8m ago•0 comments

Show HN: Browser-only STEP, STL, 3MF and OBJ tools for 3D printing

https://addercad.com/tools
2•iamzubin•9m ago•1 comments

Project Tapestry – consortium frontier foundation model training and sovereignty

https://thealliance.ai/projects/tapestry
1•musha68k•10m ago•0 comments

New tool to find the right healthcare plan

https://www.healthcostforecast.com/
1•abareshi•12m ago•0 comments

Rust: When Empty Isn't Bottom

https://ettolrach.com/blog/rust_when_empty_isnt_bottom.html
1•birdculture•16m ago•0 comments

An atlas of vanished places: how climate change is rewriting books

https://theconversation.com/an-atlas-of-vanished-places-how-climate-change-is-rewriting-the-books...
1•bryanrasmussen•18m ago•0 comments

Why I think using AI to prove the Riemann Hypothesis is important

1•olirex99•20m ago•0 comments

Show HN: Modelflare – One OpenAI-compatible API key for many LLMs

https://modelflare.dev/
2•folkbench•23m ago•0 comments

GLM 5.4

https://twitter.com/Zai_org/status/2124719658074825004
4•linzhangrun•24m ago•3 comments

17-year-old Windows 7 gets unofficial DirectX 12 and Vulkan 1.4 support

https://www.tomshardware.com/software/windows/17-year-old-windows-7-gets-unofficial-directx-12-an...
2•Brajeshwar•29m ago•0 comments

Starfish Prime

https://en.wikipedia.org/wiki/Starfish_Prime
1•stigi•31m ago•0 comments

Prove You Wrote the Text

https://deepreed.com/lubwama-abdul-muswawir-cefe/prove-you-wrote-the-text
1•lamuswawir•32m ago•0 comments

Show HN: KradleBench – Multi-agent AI evals in Minecraft

https://www.kradle.ai?1
1•jamest•34m ago•0 comments

Design Hardware at the Speed of Software

1•mhk4zemi•35m ago•0 comments

Sigvard: A walkthrough of fine-tuning an open LLM

https://tour.sigvard.ai/
1•andreyserdyukde•36m ago•0 comments

Ask HN: Cybersecurity risk of taking personal devices on business trip to China

1•luckybastard•37m ago•1 comments

Building Data Products with AI

https://www.dataproduct.com/
1•simonharrer•37m ago•1 comments

Parity-Alternating Block Dynamics: AcyclicConvergence and Sublogarithmic Routing

https://zenodo.org/records/24445007
1•chetankharkwal•38m ago•0 comments

I used Codex to review 100 open-source PRs. I left no comment on 76 of them

https://inkcrow-studio.com/notes/100-pr-reviews/
1•SCWei0806•40m ago•0 comments

Show HN: FocusStreak – Fast, offline habit tracker without account walls

1•vigneshnu•1h ago•0 comments

Show HN: nfltr-send Transfer Files over the Internet

2•abbiya•1h ago•0 comments

Surviving the AI Squeeze

https://justin.searls.co/links/2026-11-20-surviving-the-ai-squeeze/
1•quantiq•1h ago•0 comments

Show HN: Borderdraw (Web Mini-Game)

https://crux.quest/games/borderdraw/
2•saretup•1h ago•0 comments

I Think Mathematicians and Software Engineers Will Be the Same in the Future

2•dennysora-main•1h ago•2 comments

HAproxy lead: On the use of AI-based tools to find bugs in open source software

https://www.haproxy.com/blog/on-the-use-of-ai-based-tools-to-find-bugs-in-open-source-software
3•Aissen•1h ago•0 comments

19-Passenger Electric Aircraft Flies, Capable of 400 Km Range

https://aktualita.co/en/international/china-electric-aircraft-breakthrough
3•helsinkiandrew•1h ago•1 comments

Hearthly. Your Home Listening

https://jikol1906.github.io/Hearthly/
1•jllyhill•1h ago•0 comments

Novartis rejects AI industry hopes to cure cancer in five to 10 years

https://www.ft.com/content/1e5a9d70-221d-461d-ae03-dc235b1db340
2•JumpCrisscross•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).