frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Proof Automation in a Language

https://www.imperialviolet.org/2026/11/15/proofauto2.html
1•ragall•32s ago•0 comments

AI Video to Text – Free Online Video to Text and Audio to Text Converter

https://www.aivideototext.org/
1•wsm123456•37s ago•0 comments

The Curse of AI

https://rohanrdeshmukh.substack.com/p/the-curse-of-ai
1•quaintdev•56s ago•0 comments

Build or Buy Manufacturing ERP in the Age of AI

https://www.paxerp.com/blog/build-or-buy-manufacturing-erp-ai
1•robeym•1m ago•0 comments

A human-steered, AI-built freeware hybrid of Ableton, Bitwig, and Renoise

https://edu.morningdewmedia.com/product/morningdaw
1•conner_bw•1m ago•0 comments

My Emacs 31 contributions

https://xenodium.com/my-emacs-31-contributions
2•xenodium•2m ago•0 comments

Can Python Be a Chatbot?

https://github.com/huggingface/pybot
1•lewtun•2m ago•0 comments

Ask HN: Hackers/Coders/Builders – Where do you go in NYC to code?

1•mrburton•3m ago•0 comments

Remote video and microphone on Linux pipewire

https://musings.martyn.berlin/remote-video-and-microphone-on-linux-pipewire
2•speckx•4m ago•0 comments

Geometric Algebra and Extensors in NumPy, Jax, PyTorch and WebGPU

https://pypi.org/project/numga/
1•admsmz•4m ago•1 comments

Guilty Until Proven Human: How AI Suspicion Broke Book Publishing

https://smarterarticles.co.uk/guilty-until-proven-human-how-ai-suspicion-broke-book-publishing
1•dxs•4m ago•0 comments

Show HN: I made an app that uses NFC to force you out of bed

https://www.sunalta.app/
1•awaseem•5m ago•0 comments

Physics as a game loop. Part 1: Objects and waves

https://underreacted.leaflet.pub/3mncmabgnmc2x
1•havercosine•5m ago•1 comments

Nationwide ground stop exposes the nightmare of flying from US airports

https://english.elpais.com/usa/2026-11-16/nationwide-ground-stop-exposes-the-nightmare-of-flying-...
1•dxs•5m ago•0 comments

US Crude Oil SPR at same level as when it began in 1982

https://www.eia.gov/dnav/pet/PET_STOC_WSTK_A_EPC0_SAS_MBBL_W.htm
1•MarkWayneNewton•7m ago•1 comments

Nvidia ordered to explain $12B supply of AI chips to China

https://www.thetimes.com/business/companies-markets/article/nvidia-jensen-huang-us-treasury-ai-ch...
1•ronny683•7m ago•0 comments

Is Anthropic behind the Jensen Huang drama?

https://www.reddit.com/r/amodei/s/XMhqsmm4br
1•irthomasthomas•8m ago•1 comments

Man Builds Pool in His Backyard – Start to Finish DIY [video]

https://www.youtube.com/watch?v=BHrh5maZp94
1•surprisetalk•8m ago•0 comments

Show HN: Nobody blocks a keyboard – Rooted Android as a physical USB Deck

https://github.com/mr-anjaneyam/Emittr
1•mr-anjaneyam•10m ago•0 comments

Show HN: Signals – find early hiring signs and go the extra mile

https://github.com/alnaik/signals
1•fcolt18•10m ago•0 comments

Soldier files whistleblower complaint over Iran strike that killed 6 U.S. troops

https://www.cnn.com/2026/11/15/politics/army-soldier-whistleblower-complaint
2•firefax•10m ago•0 comments

Oxide: Micron Memory and Storage

https://oxide.computer/blog/oxide-micron-second-generation-cloud-computer
1•tosh•11m ago•0 comments

CockroachDB Moves to Private Source Code Development

https://www.cockroachlabs.com/blog/source-code-protection/
2•recursiveranter•12m ago•0 comments

Show HN: Bozzetto – a Place to Align on Engineering Decisions

https://bozzetto.dev
1•cirrasphere•12m ago•0 comments

The Active Directory Era Is Finally Over

https://infisical.com/blog/active-directory-machine-identity
1•FinnLobsien•12m ago•0 comments

Show HN: SketchProbe – decode Apache DataSketches binaries, runs via WebAssembly

https://yadavan88.github.io/sketchprobe/
1•yadavan88•13m ago•0 comments

Show HN: Coral – Open-source gateway where agents write their own tools

https://github.com/withcoral/coral
18•jcs•13m ago•8 comments

Fable 5.2 plans and reviews, Opus builds cheaper

https://blog.hagebols.com/posts/fable-plans-and-reviews-opus-builds-cheaper/
2•decide1000•13m ago•0 comments

Google: AI agent turned a security patch into a exploit with no human help

https://www.theregister.com/research/2026/11/16/google-ai-agent-turned-a-security-patch-into-a-wo...
3•sshah03•14m ago•2 comments

SpaceX's landing reminds us even extraordinary technology will be reinvented

https://www.theatlantic.com/technology/2026/11/spacex-starship-catch/689453/
1•fortran77•14m 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).