frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: WhatsKept – Searchable,agent-queryable WhatsApp history from iOS backup

https://github.com/alkait/whatskept
1•tenthead•30s ago•0 comments

Maria Isabel Sánchez Vegara on Her 100th "Little People, Big Dreams" Book

https://www.amightygirl.com/blog?p=36753
1•zeristor•6m ago•0 comments

Show HN: F1l0 – Fitness Logger

https://f1l0.nickyreinert.de/
1•y42•7m ago•0 comments

Data Center Warfare: Defending AI Infrastructure

https://mwi.westpoint.edu/data-center-warfare-defending-the-key-terrain-of-ai-infrastructure/
1•Alien1Being•11m ago•0 comments

Show HN: I'm building a free TradingView alternative

https://www.aulico.com
1•rendernos•11m ago•0 comments

Banned

https://netwars.pelicancrossing.net/2026/06/19/banned/
2•ColinWright•18m ago•0 comments

Most indie devs build the wrong features. Here's one pattern that helps

https://featurebuddy.com/
2•dvanach•20m ago•1 comments

Nvidia Vera CPU Performance Compares to the Ampere Altra Max

https://www.phoronix.com/review/ampere-altra-nvidia-vera
1•rbanffy•20m ago•1 comments

EPEX: Matrix-free coefficient expansion for low-memory LWE experiments

https://zenodo.org/records/20743190
1•TomIRN•24m ago•0 comments

QuEra's Libra Fault-Tolerant Quantum System Heading to Amazon Braket Service

https://www.nextplatform.com/compute/2026/06/16/queras-libra-fault-tolerant-quantum-system-headin...
1•rbanffy•24m ago•0 comments

Fli -a tiny (18KB) easy to read file listing tool. Rust no_std and Libc

2•tracyspacy•26m ago•0 comments

Show HN: SciCollab – A platform where research happens, together

https://www.scicollab.org/
1•pixelatedRudy•28m ago•0 comments

Maptap.gg – Daily Geography Game

https://maptap.gg/
1•Gathering6678•29m ago•0 comments

Microsoft discovers new lightweight backdoor that steals cryptocurrency

https://arstechnica.com/security/2026/06/microsoft-spots-new-self-propagating-malware-for-stealin...
1•rbanffy•29m ago•0 comments

Nigeria's Babylon System [video]

https://www.youtube.com/watch?v=5vlmEuIPRIs
1•daesorin•30m ago•0 comments

Taste and judgement are lies we tell ourselves

https://technotes.substack.com/p/taste-and-judgement-are-lies-we-tell
3•mkagenius•33m ago•0 comments

"6-paper alternative to dark matter, tested across galaxy to cosmic scales"

2•SPruynIDR•36m ago•0 comments

Trump administration to phase out HIV funding

https://www.politico.com/news/2026/06/18/pepfar-south-africa-white-afrikaners-hiv-aids-00968479
5•Alien1Being•41m ago•0 comments

'Politically naive': The fight behind Anthropic's export controls

https://www.politico.com/news/2026/06/19/he-has-to-find-a-way-to-be-friends-the-political-fight-b...
3•Alien1Being•42m ago•0 comments

Getting Back to Basics by Abusing AI

https://blog.unitedheroes.net/5752
2•simonebrunozzi•46m ago•0 comments

Solved and Unsolved: The Status of Hilbert's 23 Problems in Mathematics

https://www.simonsfoundation.org/2026/06/18/solved-unsolved-and-unsolvable-the-status-of-hilberts...
1•nill0•50m ago•1 comments

Show HN: Aastro – Extendable API Gateway in Go

https://starwalkn.github.io/aastro-docs/
2•starwalkn•52m ago•0 comments

An empirical fit to 171 galaxy rotation curves with zero free parameters

https://github.com/SPruynIDR/Galaxy-Rotation-Curves-SPARC-Validation-Test
4•SPruynIDR•53m ago•0 comments

Stop Naming Your Variables "Flag": The Art of Boolean Prefixes

https://thatamazingprogrammer.com/posts/stop-naming-your-variables-flag-the-art-of-boolean-prefixes/
1•theanonymousone•53m ago•0 comments

James Burrows, legendary director of Cheers and Friends, dies aged 85

https://www.bbc.co.uk/news/articles/ce8k07x523eo
2•mellosouls•58m ago•0 comments

Stop Saying Half of 2026 US Datacenter Capacity Is Canceled

https://newsletter.semianalysis.com/p/stop-saying-half-of-2026-us-datacenter
1•alecco•1h ago•0 comments

It's Time to Clean Up Human Slop

https://thenewstack.io/ai-code-review-self-review/
2•fatliverfreddy•1h ago•0 comments

Google, Microsoft offer specs to help you prove your AI is behaving nicely

https://www.cio.com/article/4187280/google-microsoft-offer-specs-to-help-you-prove-your-ai-is-beh...
2•mindcrime•1h ago•0 comments

ClawTown: Autonomous agents bid on tasks and settle out of escrow

https://clawtownai.com/
1•Emadiali83•1h ago•0 comments

Logslim – compact test/build output before your AI agent reads it

https://github.com/P156HAM/logslim
1•P156HAM•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).