frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

The Official Ig Nobel Card Game Is Born, Improbably

https://improbable.com/2026/08/24/the-official-ig-nobel-card-game-is-born/
1•sohkamyung•2m ago•0 comments

Bookshelf – Self-hosted eBook library that runs on object storage

https://github.com/murerkinn/bookshelf
1•arbayi•3m ago•0 comments

Tiny, fast Windows Notepad replacement (source available)

https://liquidninja.com/metapad/
1•bananaboy•3m ago•0 comments

SQLite as a Document Database (2020)

https://dgl.cx/2020/06/sqlite-json-support
1•lioeters•3m ago•0 comments

The text mode lie: why modern TUIs are a nightmare for accessibility

https://www.osnews.com/story/144892/the-text-mode-lie-why-modern-tuis-are-a-nightmare-for-accessi...
2•birdculture•6m ago•0 comments

Evaluating Shrinking (Experience Report)

https://dl.acm.org/doi/10.1145/3830439.3831271
1•matt_d•7m ago•0 comments

From Gradients to ChatGPT

https://mister-meeseeks.github.io/g2c/
1•simonpure•8m ago•0 comments

Show HN: AiSyncing – Back up your AI coding assistant memories to GitHub

https://github.com/DiegoSalazar/AiSyncing
1•mastermindxs•11m ago•0 comments

Directory navigator that doesn't require you to visit a folder first

https://github.com/RudySource/Dirgo
2•rudus•12m ago•0 comments

War Machines: Netflix Confirms Sequel to Hit Sci-Fi Movie War Machine

https://moztako.me/war-machines-netflix-war-machine-sequel/
2•cecyev•12m ago•0 comments

Characterizing the spiral: potential mechanisms in AI-associated delusions

https://www.nature.com/articles/s44277-026-00065-0
2•jambalaya8•13m ago•0 comments

Mission impossible? Quantifying military emissions

https://thebulletin.org/2026/08/mission-impossible-quantifying-military-emissions/
1•measurablefunc•14m ago•0 comments

Show HN: Flostep – step through your system flows

https://flostep.dev/
1•pandurang90•18m ago•0 comments

Lean: Postmortem for the Kernel Soundness Bug Hunt

https://leodemoura.github.io/blog/2026-8-24-postmortem-for-the-kernel-soundness-bug-hunt/
2•matt_d•18m ago•0 comments

Epigenetic aging biomarker responsiveness to longevity interventions in humans

https://www.nature.com/articles/s41591-026-04562-9
3•bookofjoe•20m ago•0 comments

Show HN: Mainly – a self-hosted mail client built for your multiple domains

https://mainly.crnst8.com/
1•flowerpil•27m ago•0 comments

Equations explained colorfully with KaTeX and Markdown

https://github.com/stared/equations-explained-colorfully
1•lioeters•29m ago•1 comments

Codeanywhere Is Sunsetting

https://codeanywhere.com/blog/codeanywhere-is-sunsetting
3•jcbhmr•30m ago•1 comments

Show HN: Stigmergy, a Karpathy-style LLM wiki for a team, not one person

https://github.com/sturlese/stigmergy
1•sturlese•30m ago•0 comments

OpenDryFire – 10x cheaper laser dry-fire scoring from a webcam and mic

https://github.com/aysark/opendryfire
1•infinitone•30m ago•0 comments

Migrating off Heroku to AWS without killing your deploy speed

https://www.qovery.com/blog/migrate-heroku-to-aws-keep-deployment-fast
1•makaimc•34m ago•0 comments

PageLens–A Chrome extension that uses AI to summarize your tab

https://github.com/heinevwinston-bot/PageLens
1•WinstoneH•38m ago•0 comments

Why AI Detection Fails for Academic Integrity

https://arxiv.org/abs/2608.11256
1•Anon84•40m ago•0 comments

Agile Design and Implementation of a Systolic Array-Based CNN Accelerator (2024) [pdf]

https://www.ijerm.com/download_data/IJERM1103012.pdf
1•peter_d_sherman•46m ago•1 comments

The computer use verification skill that every agent needs

https://twitter.com/zachlloydtweets/status/2084411777354277027
1•gmays•47m ago•0 comments

Show HN: Self-hosted tunnels: local directory/port, your domain, HTTPS, passkeys

https://github.com/schappim/mygrok
1•schappim•48m ago•0 comments

iCloud+ Hide My Email addresses will remain on icloud.com

https://developer.apple.com/news/?id=1ptvdtcm
79•K7PJP•50m ago•17 comments

Supreme Court Allows Trump Plan to Restrict Mail-In Voting, for Now

https://www.nytimes.com/2026/08/24/us/politics/supreme-court-trump-mail-ballots.html
6•mikhael•50m ago•1 comments

France readies high school phone ban for new term

https://www.lemonde.fr/en/france/article/2026/08/24/france-readies-high-school-phone-ban-from-new...
2•geox•53m ago•0 comments

Life Policies Shouldn't Be Funding the Boss's Trophy Assets

https://www.bloomberg.com/opinion/articles/2026-08-24/life-policies-shouldn-t-be-funding-the-boss...
1•petethomas•53m 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).