frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Fastconstmap: Fast, immutable, compact map from strings to int64 for Python

https://github.com/lemire/fastconstmap
1•mfiguiere•2m ago•0 comments

Terraform AWS Organization Foundation

https://github.com/henriquesgnc/terraform-aws-organization-foundation
1•eriksencosta•2m ago•1 comments

Consciousness Is Not a Binary Thing

https://medium.com/@chuliangyu/consciousness-is-not-a-binary-thing-7a020f93ba99
1•chuliangyu•4m ago•0 comments

Brockman Officially Takes Control of OpenAI's Products in Latest Shake-Up

https://www.wired.com/story/openai-reorg-greg-brockman-product/
1•JumpCrisscross•5m ago•0 comments

OSnews – 21 years and 20k posts later

https://www.osnews.com/story/144962/21-years-and-20000-posts-later/
2•greatquux•11m ago•0 comments

A fork() in the road (2019) [pdf]

https://www.microsoft.com/en-us/research/wp-content/uploads/2019/04/fork-hotos19.pdf
1•aragonite•11m ago•0 comments

There is no room: the sphere of automation

https://metastable.org/the-sphere/
1•pbw•12m ago•0 comments

Proteomic signatures of APOE ε4 and APOE ε2 genetic variants and Alzheimer's dis

https://www.nature.com/articles/s43587-026-01123-0
1•bookofjoe•14m ago•0 comments

DroidDesk: Turns Android Phone into Linux Desktop

https://github.com/orailnoor/DroidDesk
2•Einenlum•15m ago•0 comments

Triad – a dynamic, scriptable window manager for the River Wayland compositor

https://github.com/greenm01/triad
1•smartmic•16m ago•0 comments

Loop Fission and Fusion

https://en.wikipedia.org/wiki/Loop_fission_and_fusion
1•tosh•17m ago•0 comments

Show HN: Strava for AI coding – analytics on your Copilot/Claude/Codex usage

https://github.com/microsoft/AI-Engineering-Coach
2•aymenfurter•18m ago•0 comments

Tesla reveals two Robotaxi crashes involving teleoperators

https://techcrunch.com/2026/05/15/tesla-reveals-two-robotaxi-crashes-involving-teleoperators/
7•Brajeshwar•20m ago•0 comments

A text based loading/thinking animation exploration

https://old.reddit.com/r/webdev/comments/1tetzlb/agents_are_thinking_a_text_based_thinking/
1•zane__chen•21m ago•0 comments

PyCon US 2026 Typing Summit Recap

https://bernat.tech/posts/pycon-us-2026-typing-summit-recap/
1•rexledesma•22m ago•0 comments

Show HN: Infinite Swap – Trade a bottle cap up to a house

https://infiniteswap.app/
1•dansquizsoft•23m ago•0 comments

Profunctor Equipment in Haskell

https://bartoszmilewski.com/2026/05/16/profunctor-equipment-in-haskell/
1•g0xA52A2A•23m ago•0 comments

Long Island Rail Road Strike Shuts Down Busiest U.S. Passenger Rail Service

https://www.nytimes.com/2026/05/16/nyregion/lirr-strike.html
2•JumpCrisscross•24m ago•0 comments

Custodial vs. non-custodial stablecoin cards: two different systems

https://nethsara.substack.com/p/custodial-vs-non-custodial-stablecoin
2•nethsarask•24m ago•0 comments

MacBook microphone has no dynamic range

https://blog.vasi.li/macbook-microphone-has-no-dynamic-range/
2•vsviridov•25m ago•1 comments

Can Some Tiny Particles Cool the Planet? One Tech Company Says Yes

https://www.nytimes.com/2026/05/14/climate/stardust-solutions-geoengineering-cooling-earth.html
1•lxm•27m ago•0 comments

How an Australian Teen Team Is Making Radio Astronomy Affordable for Schools

https://mag.openrockets.com/p/how-an-australian-teen-team-is-making-radio-astronomy-affordable-fo...
4•openrockets•29m ago•0 comments

Show HN: Agenda Intel MD – schemas and CLI to audit LLM strategic-risk briefs

https://github.com/vassiliylakhonin/agenda-intelligence-md
1•vassilbek•30m ago•0 comments

NeuroAPI – AI for Finance

https://neuroapi.neurobro.ai/docs
1•gromdimon•30m ago•1 comments

Kaiku – Free FM Synthesizer – VST3 – Linux / macOS / Windows

https://github.com/Jakko-KAAMOS/kaiku
1•Jakko-KAAMOS•31m ago•0 comments

AI research papers are getting better, and it's a big problem for scientists

https://www.theverge.com/ai-artificial-intelligence/930522/ai-research-papers-slop-peer-review-pr...
2•greesil•32m ago•0 comments

What Sudoku Reveals About AI Reasoning Architectures and the Future

https://logicalintelligence.com/blog/energy-based-model-sudoku-demo
1•Topfi•32m ago•0 comments

Tesla Patents New Trim Clip to Reduce Rattles and Vibrations

https://www.notateslaapp.com/news/4122/tesla-patents-new-trim-clip-to-reduce-rattles-and-vibrations
1•busymom0•38m ago•0 comments

B2B Copywriting That Drives Demand

https://draft.dev/learn/b2b-copywriting-drives-demand
2•mooreds•40m ago•0 comments

Mode collapse has a name, and he's selling cancer treatment advice on Amazon

https://danielmay.co.uk/posts/cheap-agents-alumni-shirts-and-elias-thorne/
2•danielrmay•41m 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).