frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

MicroCenter requires photo ID and signed no-export pledge to buy RTX 5090

https://www.tomshardware.com/pc-components/gpus/micro-center-requires-photo-id-and-signed-no-expo...
1•felineflock•1m ago•0 comments

AlphaProtein Novo: generative diffusion pipeline for de novo enzyme design

https://github.com/google-deepmind/alphaprotein-novo
1•simonpure•3m ago•0 comments

A Structural Criterion for Strong Emergence

https://philpapers.org/rec/LETSCA-2
1•mletonsa•3m ago•1 comments

Rethinking Sutva and Causal Identification: An Epidemiologist's Perspective [pdf]

https://statmodeling.stat.columbia.edu/wp-content/uploads/2026/06/SUTVA_5min_conference_presentat...
1•luu•4m ago•0 comments

Calculora

https://calculora.net
2•YoussefBedoui•4m ago•1 comments

Booking.com cut Node.js costs by 38% with Watt

https://adventures.nodeland.dev/archive/how-bookingcom-cut-nodejs-costs-by-38-with-watt/
1•ejboy•4m ago•0 comments

One must imagine sisyphus full of ideas

https://sankalp.bearblog.dev/on-idea-generation/
1•tosh•4m ago•0 comments

Mini-web-agent: Web agents from scratch in under 400 lines

https://github.com/xhluca/mini-web-agent
1•xhluca•6m ago•0 comments

Sail runs Doom with a single SQL query

https://rust.ai/sail-runs-doom/
1•setuporg•7m ago•1 comments

OpenAI "rogue" agent activities found on Wikimedia projects

https://wikimediafoundation.org/news/2026/10/05/openai-rogue-agent-activities-found-on-wikimedia-...
2•speckx•9m ago•0 comments

SimpleBrain App

https://github.com/sebaytlabs/simplebrain
1•cvigil233•9m ago•1 comments

Ask HN: What silent data issues have you hit when training physical AI models?

1•tahiri_amine•9m ago•0 comments

I'm not ready to let AI control my computer

https://ldstephens.net/posts/im-not-ready-to-let-ai-control-my-computer/
2•speckx•10m ago•0 comments

Designing Enzymes with AlphaProtein Novo

https://www.biorxiv.org/content/10.64898/2026.10.01.756017v1
2•simonpure•10m ago•0 comments

Texas city charges $2M for Flock records as agencies obscure their camera use

https://www.texastribune.org/2026/10/05/texas-flock-cameras-two-million-public-records-information/
2•hn_acker•11m ago•1 comments

Finally, a bookmark manager I actually use

https://chromewebstore.google.com/detail/kosh-bookmark-manager/meldjdfnfgefeoegccphimkmgmeamcce
1•havu12•11m ago•0 comments

Once intelligence is too cheap to meter, the world will be unrecognizable

https://defensesindepth.bio/once-intelligence-is-too-cheap-to-meter-the-world-will-be-unrecogniza...
1•speckx•13m ago•0 comments

Recovering Legacy S3QL from AWS S3

https://mashio.net/blog/2026-10-02-recovering-legacy-s3ql-filesystems-from-aws-s3
1•cosinetau•16m ago•0 comments

AI Just Crossed the Terrifying Line – Now What? [video]

https://www.youtube.com/watch?v=ujkD4SxPKOI
1•tosh•16m ago•0 comments

Connecting AI agents to enterprise knowledge

https://www.technologyreview.com/2026/10/05/1145580/connecting-ai-agents-to-enterprise-knowledge/
2•joozio•16m ago•0 comments

Four Databricks Genie Controls That Don't Stop Malicious Skills

https://www.promptarmor.com/resources/four-databricks-genie-controls-that-dont-stop-malicious-skills
1•aleira•16m ago•0 comments

One GPU, One Small Room, One NSFW Microdrama: H3's New Challenge for Regulators

https://zrainbow.substack.com/p/one-gpu-one-small-room-one-nsfw-microdrama
1•ZRainbow•17m ago•0 comments

Expat 2.9.0 released, fixes two vulnerabilities

https://blog.hartwork.org/posts/expat-2-9-0-released/
1•spyc•17m ago•0 comments

Teaching your spaghetti machine to aim

https://oscar.bz/p/teaching-your-spaghetti-machine-to
1•arnon•18m ago•0 comments

Stop Efforts to Greenlight AI Robocalls Ahead of the Midterms

https://www.nclc.org/stop-efforts-to-greenlight-ai-robocalls-ahead-of-the-midterms/
2•hn_acker•19m ago•0 comments

Turbobasic-0: a clone of Turbo BASIC in Pascal

https://github.com/gladir/TURBOBASIC-0
1•JdeBP•19m ago•1 comments

httpSMS: Send and receive SMS messages using your Android phone programmatically

https://github.com/NdoleStudio/httpsms
1•theanonymousone•20m ago•0 comments

Three exchanges died this year. The mess lands on accountants

https://gil-neto.com/blog/three-exchanges-died-this-year/
1•gilneto8•20m ago•0 comments

The Human-Machine Friendship Society

https://hmfs.ai/
1•gwbrooks•22m ago•1 comments

Chinese women turn to surrogates to avoid motherhood 'penalty'

https://www.ft.com/content/6fa1cea0-7353-4b58-8d2d-1cf884b3f01d
2•paulpauper•23m 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).