frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

My Two Front Teeth

https://theamericanscholar.org/my-two-front-teeth/
1•gmays•30s ago•0 comments

Show HN: We Build Shareable Context Layer for Agent Teams

https://github.com/volcengine/OpenViking
1•zaynjarvis•1m ago•1 comments

PolyNotes App

1•PolySync•2m ago•0 comments

The Loss of Positive Friction

https://cutlefish.substack.com/p/tbm-450-the-loss-of-positive-friction
2•swolpers•5m ago•0 comments

Show HN: Gimbap – A themeable replacement for the macOS Dock

https://minho42.github.io/gimbap/
1•minho42•7m ago•0 comments

Show HN: Reges Code – a free AI code editor that runs on local models

https://regescode.com/
1•nonerthy•13m ago•0 comments

The SideWinder Game Pad, Microsoft's first game controller

https://www.rockpapershotgun.com/can-the-sidewinder-game-pad-microsofts-first-game-controller-wor...
2•Tomte•13m ago•0 comments

Sony World Photography Awards Honors James Barnor, Ghana's First Photojournalist

https://petapixel.com/2026/11/05/sony-world-photography-awards-honors-james-barnor-ghanas-first-p...
1•Tomte•16m ago•0 comments

Are Passkeys a Trap?

https://jimthefrog.substack.com/p/are-passkeys-a-trap
1•nonfunctional•25m ago•0 comments

Our software engineering interviews are changing (a little)

https://blog.janestreet.com/software-engineering-interviews-are-changing-a-little/
1•hubraumhugo•25m ago•0 comments

Is "GPU-hour per user" a sane way to price LLM inference?

https://www.mirastacklabs.ai/
1•mirastacklabs•29m ago•0 comments

Kirlian Photography: Building Your Own Equipment

https://imagesco.com/articles/kirlian/kirlian-photography.html
3•joebig•31m ago•0 comments

New type of architecture for agentic memory

https://zenodo.org/records/23971266
1•shoman3003•32m ago•0 comments

Bringing Your Muse to Life

https://research.meta.ai/blog/bringing-your-muse-to-life
2•gmays•33m ago•0 comments

Gossip penalty hits men harder than woman at work

https://tippie.uiowa.edu/news/2026/10/gossip-penalty-hits-men-harder-woman-work
2•rohanm93•34m ago•0 comments

JobRequester: I built this free Chrome extension that tracks job applications

https://jobrequester.com/
1•mejesseolsen•35m ago•0 comments

Simon Winchester, Author of 'The Professor and the Madman,' Has Died

https://www.nytimes.com/2026/11/04/obituaries/simon-winchester-dead.html
1•benbreen•38m ago•0 comments

Four shark killings in 1916 led to a tsunami of hysteria and Spielberg's "Jaws"

https://www.thevintagenews.com/2018/01/31/jaws-inspiration/
1•Eridanus2•42m ago•0 comments

Le Salon Client IRCv3 natif en Rust – interface GPU avec GPUI

https://github.com/MrTHP/Le-Salon
1•misterthp•51m ago•1 comments

Breaking the Decade-Long Trump Fever

https://www.newyorker.com/magazine/2026/11/16/breaking-the-decade-long-trump-fever
2•rbanffy•53m ago•0 comments

I Use Development-Driven Specs, Not Spec-Driven Development

https://github.com/waywardgeek/ensemble
3•WaywardGeek•53m ago•1 comments

Elephant-Goldfish Model (Agent Skill)

https://github.com/google/elephant-goldfish-model
1•pella•55m ago•0 comments

MiniToolDesk Tools

https://minitooldesk.com/tools/
3•minitooldesk•56m ago•1 comments

Show HN: Maple – Sub-2-BPW Moe Pruning to Run Gemma 4 26B at 45 TPS on a 6GB GPU

https://github.com/AmSach/maple
2•AmSach•57m ago•0 comments

ISponsorBlockTV: SponsorBlock client for all YouTube TV clients

https://github.com/dmunozv04/isponsorblocktv
3•xnx•58m ago•0 comments

Show HN: Reges Town – a 3D city run by AI citizens, in the browser

https://regestown.com
2•nonerthy•1h ago•0 comments

Ocarina of Time (Switch 2) PC Recompilation

https://github.com/NotRexed/Hookshot
1•avaer•1h ago•1 comments

I Love the Smiths AI: A Familiar Elevator Scene, with You in It

https://medium.com/@wangjiayiliuyan/i-love-the-smiths-ai-a-familiar-elevator-scene-with-you-in-it...
1•visiohex•1h ago•1 comments

The Maya used so much red paint that they poisoned their water with mercury

https://www.livescience.com/archaeology/americas/the-maya-used-so-much-red-paint-that-they-poison...
2•geox•1h ago•0 comments

Addressing protocol security gaps in multi-tenant Kubernetes

https://aws.amazon.com/blogs/security/addressing-protocol-security-gaps-in-multi-tenant-kubernetes/
2•acossta•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).