frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Ukraine's Unmanned Systems Forces – Official Website

https://usforces.army/en
1•mmarian•2m ago•0 comments

The Emergence of Inequality in the Czech Corded Ware Culture

https://www.jna.uni-kiel.de/index.php/jna/article/view/1560/1746
2•marojejian•3m ago•1 comments

Show HN: Custom SQLites for agents (a remote MCP)

https://databasedmcp.com/
1•tukkajukka•5m ago•0 comments

Chord 4.1 – An IF modeling language

https://sharpee.plover.net/chord-4-1-with-language-manual/
1•ChicagoDave•5m ago•0 comments

Brain Doesn't Think in Sentences. Why Should an LLM?

https://www.innerkore.com/blog/brain-doesnt-think-sentences-llm/
1•gagan2020•5m ago•0 comments

Show HN: KeyLayers – Keyboard layers for the MacBook's built-in keyboard

https://johannes.plunien.com/KeyLayers/
1•jplunien•5m ago•0 comments

Investigations and Post-Mortems

https://codeberg.org/Codeberg/changelog/issues/7
1•planteur•7m ago•0 comments

Air Office – Open-source local-first desktop workspace for AI safety research

https://gyrogovernance.com/air-office/
1•basil_korompili•12m ago•0 comments

I built an LTD name checker – how do I moneitze?

1•multiclaudi•14m ago•0 comments

I Got Postgres into a Single Binary

https://progrium.xyz/articles/2026/single-binary-postgres/
2•todsacerdoti•15m ago•0 comments

Show HN: Tabletop Champions – Drift toy cars round a tabletop

https://typeonce.games/tabletop-champions
1•sandromaglione•15m ago•0 comments

Developing the perception to separate the form of a place from what it contains

https://www.thedeletedscenes.com/p/blight-and-entrepreneurship-in-manassas
1•NaOH•15m ago•0 comments

OpenNotch: Liquid Glass Dynamic Island and Taskbar for Linux and Windows

https://github.com/nocturnehq/opennotch
1•nocturnehq•18m ago•1 comments

Show HN: QFTM-1024 – An open-source MBTI alternative with 1024 profiles

https://Daniil-Myagkov.github.io/qftm-1024/
1•QFTM-1024•21m ago•0 comments

Pandex – Official European Law for AI Agents, over MCP

https://www.pandex.io
2•vasie•22m ago•1 comments

Show HN: Share agents and context across devices

https://smatt989.github.io/agentremote-site/
1•matthewslotkin•23m ago•0 comments

Vulcan, a new backgammon engine that beats XG 4-ply

https://www.gammonforge.com
1•calebwetherell•25m ago•0 comments

533M tunnel dug through rock from opposite ends around 700 BC

https://jesussavescities.com/read/hezekiahs-tunnel/
2•titusblair•28m ago•0 comments

Show HN: Ripcloc – cloc every edit your agent makes

https://github.com/alfredjeanlab/ripcloc
1•kevsten•31m ago•0 comments

Samsung TV Ad Spoofer

https://github.com/danvratil/samsung-tv-adspoofer
1•gnabgib•32m ago•0 comments

Securely share passwords with your Agents

https://github.com/inixiative/secret-scratch
1•inixiative•33m ago•0 comments

Firefox Relay

https://relay.firefox.com/
3•nkjoep•33m ago•0 comments

The "just build it, you can make it better later" cliche

https://nader.pm/articles/the-just-build-it-you-can-make-it-better-later-cliche/
1•speckx•34m ago•0 comments

Project Gryffindor: Meta's plan to get more school kids using Instagram

https://www.npr.org/2026/11/18/nx-s1-6037808/meta-instagram-schools-teens-safety
3•gnabgib•35m ago•0 comments

Why agent swarms get better at optimizing code as they grow

https://frontier.replit.com/throwing-headcount-at-the-problem/
1•ersinesen•35m ago•0 comments

Wikipedia Page Views Declining

https://www.dotnetperls.com/2026_11_21_wikipedia-page-views-declining
1•speckx•39m ago•0 comments

An update on the recent Civo Cloud disruption

https://www.civo.com/blog/update-on-the-recent-civo-cloud-disruption
1•Palmik•41m ago•0 comments

PHP 8.6: Things are gonna get more strict around here

https://www.theregister.com/devops/2026/11/20/php-86-things-are-gonna-get-a-lot-more-strict-aroun...
3•speckx•47m ago•0 comments

Swift Proposal: Per-Class Allocators

https://github.com/Andrew-Fryer/swift-evolution/blob/5701d7ceed1ab21db95bf21c56257d41c2ce201b/pro...
2•frizlab•50m ago•1 comments

Show HN: NerdKit – Zero-Upload Browser Tools for Parquet, Postgres Explain, HAR

https://global-utils.com/en
1•dbstjr0510•50m 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).