frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Wafmeow – fast WAF fingerprinting in Go

https://github.com/Lu1sDV/wafmeow/
1•lsui•40s ago•0 comments

Show HN: Overhear – mention monitoring billed per search, not per month

https://overhear.dev/
1•hauju•6m ago•0 comments

Sayloe – Speak in one language, type in another on Mac

https://sayloe.com/
1•johngail•8m ago•0 comments

Chain Theory

https://theinnermostloop.substack.com/p/chain-theory
1•mikhailfranco•8m ago•1 comments

Show HN: OpenNorme – every law in Italy from 1861 in Git. One law per file

https://github.com/dej611/italian-laws-history
1•dej611_1•18m ago•0 comments

The Brutal Harvard Class That Suddenly Everyone Wants to Take

https://www.wsj.com/lifestyle/harvard-class-humanities-32e06366
2•pretext•19m ago•0 comments

We're Living in the Age of the Imperial CEO

https://www.wsj.com/tech/ai/anthropic-ipo-dual-class-stock-founder-control-4c43a56d
3•pretext•20m ago•0 comments

Never Trust an Artist

https://medium.com/luminasticity/never-trust-an-artist-d7ce73ad336c
1•bryanrasmussen•20m ago•0 comments

Aqueous: The files you keep are compressed. Badly

https://lifthrasiir.github.io/aqueous/
2•serialx•21m ago•0 comments

Daylight Saving Time

https://en.wikipedia.org/wiki/Daylight_saving_time
1•pretext•25m ago•0 comments

Is AI Cheap Enough to Replace Developers?

https://zyvop.com/is-ai-actually-cheap-enough-to-replace-developers-8i74u
1•sanjays442•25m ago•0 comments

Show HN: See whether ChatGPT recommends your business (and who it names instead)

https://citeon.dev
1•zacapos•25m ago•0 comments

Break into Chat

https://breakintochat.com/
1•signa11•25m ago•0 comments

BikeZap: Zap through first person cycling videos around the world

https://bikezap.pages.dev/
1•rr0•26m ago•0 comments

An LC-3 Disassembler in Haskell

https://abhinavsarkar.net/posts/lc3-disassembler/
2•abhin4v•32m ago•0 comments

We build our voice input method like an experiment

https://arion.astrafoundry.si/blog/building-like-an-experiment/
1•l2dy•36m ago•0 comments

Show HN: Dolly – A Tribute to "The Birth and Death of JavaScript"

https://slopshare.dev/v0.1.4/
1•daugasauron•37m ago•0 comments

Effective Type: Part 1

https://uecker.codeberg.page/2026-10-31.html
1•uecker•41m ago•0 comments

Ganson+, Google+ accurately revived because nobody cared to make it

https://gansonplus.xyz/login
1•frutigasteraero•41m ago•0 comments

CurateClick – A curated directory of developer tools and products

https://curateclick.com
1•dotcurio•41m ago•2 comments

Ghost in the machine: how AI is haunting the search for the supernatural

https://www.theguardian.com/technology/ng-interactive/2026/oct/30/ai-ghost-hunting
2•nephihaha•43m ago•0 comments

The VPN Manager I want to build: let different apps use their own VPNs

https://dennysora.me/en/blog/tools/vpn-manager-architecture/
1•dennysora-main•46m ago•0 comments

Mercury Arc Rectifiers – Kempton Steam Museum [video]

https://www.youtube.com/watch?v=YhaQqgXrMMU
1•mdf•56m ago•0 comments

Bubbuild/republic: A Python library for AI providers

https://github.com/bubbuild/republic
1•l2dy•57m ago•0 comments

Microsoft confirms Windows 11 won't let you move the Taskbar like on Windows 10

https://www.windowscentral.com/microsoft/windows-11/its-a-deliberate-design-decision-not-a-missin...
3•thunderbong•58m ago•1 comments

Double Trouble (From Macbeth)

https://potw.org/archive/potw283.html
1•joebig•1h ago•0 comments

FineDNA: Open data to train LLMs on DNA

https://huggingface.co/datasets/HuggingFaceBio/FineDNA
4•pixel_art•1h ago•0 comments

V0.5.0 of PSSA: a non-transformer language model

https://github.com/Sparticle62ops/pssa/releases/tag/v0.5.0
2•JPLeRouzic•1h ago•0 comments

Open data and code to teach LLMs to read DNA

https://github.com/huggingface/carbon
3•testerui•1h ago•0 comments

Briareus: Segment-parallel distributed video transcoder in Go, built on FFmpeg

https://github.com/omanshchoudhary/briareus
3•handfuloflight•1h ago•0 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).