frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Taking Email Back

https://www.linux-magazine.com/Online/Features/Taking-Email-Back
1•pierreneter•51s ago•0 comments

Blip'n Blop in the Browser

https://k-adam.github.io/blip-blop/
1•k-adam•1m ago•0 comments

Measuring RSI

https://andrewtrask.substack.com/p/measuring-rsi
1•gmays•3m ago•0 comments

Tech Stocks Jump as Investors Take a Break from AI Jitters

https://www.wsj.com/finance/stocks/stocks-poised-to-end-week-strong-as-investors-take-break-from-...
1•doener•3m ago•0 comments

Build Your Own Paint

https://www.buildyourownpaint.com/en
2•todsacerdoti•9m ago•0 comments

FIFA confirms cyber-attack exposed 'personal and business information'

https://www.theguardian.com/football/2026/nov/26/fifa-cyberattack-hack-personal-information
1•dvaplima•9m ago•1 comments

Why is Hacker News like that?

https://drewdevault.com/blog/Why-is-HN-like-that/#
6•Vaushite•10m ago•1 comments

Show HN: Black Friday for Developers

https://www.blackfriday.dev
1•themesberg•11m ago•0 comments

Rayo's Number

https://en.wikipedia.org/wiki/Rayo%27s_number
1•vinnyglennon•11m ago•0 comments

Show HN: Shandu 4.0 – Local sleek deep research agent that audits every citation

https://github.com/jolovicdev/shandu
1•jolovicdev•12m ago•0 comments

The weird little guys of FOSS

https://drewdevault.com/weird-guys/#djb
1•Vaushite•13m ago•1 comments

How to Brew Solar Powered Coffee

https://solar.lowtechmagazine.com/2025/11/how-to-brew-solar-powered-coffee/
1•Sir_Twist•14m ago•0 comments

From Here to Xfinity

https://davebarry.substack.com/p/from-here-to-xfinity
1•laowantong•14m ago•0 comments

Dungeons and Dragons maker will pass AI settlement money to authors

https://www.seattletimes.com/business/dungeons-dragons-maker-will-pass-ai-settlement-money-to-aut...
3•doctorzook•15m ago•0 comments

What AI regulation could learn from the most hazardous industries in the world

https://theconversation.com/what-ai-regulation-could-learn-from-the-most-hazardous-industries-in-...
2•pdfernhout•16m ago•1 comments

Show HN: AIsbom – ML model scanner, now with a public list of what it misses

https://github.com/Lab700xOrg/aisbom/blob/main/docs/bypass-scorecard.md
1•lab700xdev•18m ago•0 comments

Palliative Care for the Chronically Online

https://idiotecon.substack.com/p/palliative-care-for-the-chronically
3•paulpauper•19m ago•1 comments

Show HN: Hooks that stop Claude Code from faking tests and inventing packages

https://github.com/John99101/claude-code-project-template
1•john6601•20m ago•0 comments

Show HN: A self-hosted, read-only API for Proton Calendar

https://github.com/xcalts/protoncalendar-ro-api
1•xcalts•20m ago•0 comments

Why Emacs Is Still So Hard to Replace After 50 Years [video]

https://www.youtube.com/watch?v=fzDSXohmVl4
1•darkawower•20m ago•0 comments

Show HN: I Know Your Age – Client-side Bayesian age deduction across 7 cultures

https://snibbly.com/
1•bookbyter•21m ago•1 comments

Where I Like to Sit

https://tenthousandflowertube.substack.com/p/where-i-like-to-sit
2•paulpauper•21m ago•0 comments

Delaware's dangerous plan for autonomous AI companies

https://www.ft.com/content/8b989597-c00b-4839-af3d-a37c1bb14e7e
2•Nydhal•21m ago•0 comments

Does it matter if there's an intelligence explosion?

https://www.noahpinion.blog/p/does-it-really-matter-if-theres-an
2•paulpauper•22m ago•0 comments

Claude allegedly silently altering code outputs instead of doing refusals

https://twitter.com/jakozloski/status/2126281598517576049
1•mister_mort•24m ago•1 comments

NERC's Data Center Power Rules Tackle Power Swings

https://spectrum.ieee.org/nercs-data-center-power-rules
1•rbanffy•25m ago•0 comments

Gordian Knot

https://en.wikipedia.org/wiki/Gordian_Knot
1•chistev•28m ago•0 comments

Backblaze explains why it's sharing customer information with advertisers

https://arstechnica.com/information-technology/2026/11/backblaze-explains-why-its-sharing-custome...
2•Betelbuddy•28m ago•1 comments

Plato's Key

https://hazyresearch.stanford.edu/blog/2026-11-25-platos-key
1•gmays•28m ago•0 comments

Entering the Geminispace

https://jmmv.dev/2026/11/entering-the-geminispace.html
1•birdculture•29m 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).