frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Sponsored-logs-rs: Open the Rust book: monetize the tracing exhaust

https://github.com/sponsoredlogs/sponsored-logs-rs
1•thunderbong•22s ago•0 comments

Show HN: Jev-windows-agent – Windows UI Automation back end for CUA agents

https://github.com/VBS2004/jev-windows-agent
1•VBS2004•2m ago•0 comments

Being Mentioned in AI Answers Is Not the Same as Being Recommended

https://cuescout.com/blog/mentioned-is-not-recommended
2•cuescout•4m ago•0 comments

SRE Udemy Course: Software Reliability Map

https://www.udemy.com/course/reliability-map/
1•Brixdes•8m ago•0 comments

Jempo by Thomas Ha

https://www.lightspeedmagazine.com/fiction/jempo/
1•Alien1Being•10m ago•0 comments

"As a Language Model": Chat Template Switches LLM Self-Referential Voice

https://arxiv.org/abs/2609.25021
3•yu3zhou4•13m ago•0 comments

Changes in quality of life: digital exercise therapy for knee/hip osteoarthritis

https://doi.org/10.1186/s12955-026-02634-5
2•chavasorani•13m ago•0 comments

Postgres AT TIME ZONE 'UTC' does NOT do what you think it does

https://bookofrevenue.com/blog/6ab81e9a97a13f0001f7e4e1/postgres-at-time-zone-u-does-not-do-what-...
1•birdculture•20m ago•0 comments

Trying GPT-6 Sol with AI SDK Evaluation API

https://vercel.com/i/using-gpt-6-sol-with-ai-sdk-evaluation
1•flashbrew•25m ago•0 comments

Show HN: TanStack Start and TanStack AI Jev Integration

https://vercel.com/i/using-jev-in-tanstack-start-with-tanstack-ai
1•flashbrew•26m ago•0 comments

Another week, another data breach for Revolut customers

https://www.theregister.com/cyber-crime/2026/09/25/another-week-another-data-breach-for-revolut-c...
4•imalerba•27m ago•0 comments

Ask HN: What does your AI workflow look like?

1•tadziokas•28m ago•2 comments

The Importance of Human Knowledge in the AI Era

https://jonbehnken.substack.com/p/the-case-for-learning
1•greedywhale•31m ago•0 comments

Claude Isn't Allowed to Write Me Prose

https://blog.kvit.app/posts/agent-not-allowed-to-write-prose/
2•skolos•33m ago•0 comments

YouTube stores three auto-extracted frames for every video, and nobody uses them

https://github.com/InfinityLoop1308/PipePipeClient/pull/98
2•jrejaud•35m ago•0 comments

How AI Is Accelerating PCB Design and Prototyping

https://www.eetimes.com/how-ai-is-accelerating-pcb-design-and-prototyping/
1•giuliomagnifico•38m ago•0 comments

Poisoning a Go Cache

https://lukasschwab.me/blog/gen/poisoning-go-cache.html
2•ingve•42m ago•1 comments

Genius AI APı Anahtarı

1•Ayazefe•42m ago•0 comments

Makeraoke: Share your side project in a video between three and nine minutes

https://www.reddit.com/r/Makeraoke/
1•cs1996•43m ago•0 comments

Musk – Official Trailer (2026)

https://www.youtube.com/watch?v=-52sVAzXwLM
3•Betelbuddy•43m ago•0 comments

Sandbox-first AI coding harness

https://chock.ws/
1•rosscomputerguy•47m ago•0 comments

Show HN: Peekaboolean – image and jev-like typed questions in typed anwers out

https://github.com/bykof/peekaboolean
2•bykof•49m ago•0 comments

I Posed as a Problem Gambler. DraftKings Made Me a VIP

https://www.propublica.org/article/draftkings-sports-gambling-problem-vip-fanduel
6•theblazehen•50m ago•1 comments

Show HN: Afterlife Vault – a virtual dead man's switch

https://afterlife-vault.com
2•wmeter•50m ago•1 comments

Using Claude Code: Spending your effort

https://claude.dev/blog/spending-your-effort/
3•e12e•51m ago•0 comments

The year AGI happened, and some unhinged predictions

https://w.ouzu.im/aweb/unhinged
1•dsign•54m ago•0 comments

Show HN: LightCloud – A cloud console organised like file system

https://www.light-cloud.com/
3•yullius•54m ago•0 comments

From game physics to care robots (2023) [The Royal Society] [video]

https://www.youtube.com/watch?v=R1D9Ma4m9Q0
2•zeristor•57m ago•0 comments

How can you quikly tell if a technical article lacks firsthand experience?

3•sarra01•59m ago•0 comments

There are no borders or boundaries on our planet (2023)

https://stargazingguy.co.uk/2023/05/02/there-are-no-borders-or-boundaries-on-our-planet/
1•ssernikk•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).