frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Extract all comments from a Google Sheet

1•bsunter2•7m ago•0 comments

Show HN: I made Niri-like terminal colm (cmux alternative)

https://colm.sh/
1•al3rez•13m ago•0 comments

NASA-IBM Lunar Foundation open-Source Geospatial AI Model

https://newsroom.usra.edu/usra-contributes-planetary-science-expertise-to-nasa-ibm-lunar-foundati...
1•noobplus•13m ago•0 comments

Show HN: Seal – Letters and passwords that open for your family after you die

https://github.com/jasonepage/Seal
2•jpage2•29m ago•0 comments

A Black-Box Audit of Provider-Side Token Inflation in LLM Services

https://arxiv.org/abs/2609.20370
1•donk8r•30m ago•0 comments

San Francisco Onion Futures Company

https://onionfutures.com/
23•z-mach9•34m ago•6 comments

OpenLoco Version 26.09 Released

https://openloco.io/news/2026/09/openloco-v26.09.html
1•jandeboevrie•35m ago•0 comments

Show HN: A static reference for 5,142 supplement interactions

https://synstax.uppervoid.app/interactions/
1•reloading2008•35m ago•0 comments

Brownie Mary

https://en.wikipedia.org/wiki/Brownie_Mary
1•arittr•44m ago•0 comments

Prompts are not deleted – they are just hidden

https://medium.com/@istokovicsgyorgy79/your-prompts-are-not-deleted-they-are-just-hidden-e0016bd4...
1•CanusLupus79•46m ago•0 comments

Harm Laundering in GPT Models: Gender Discrimination Transformed Rather Than

https://arxiv.org/abs/2609.20779
3•sbulaev•51m ago•0 comments

Vibe coding did not kill making money out of engineering, open source and SaaS

https://i18n-keyless.com/
3•arnaudambro•52m ago•2 comments

Virtual Memory: Page Tables, TLBs, and Linux Internals

https://blog.codingconfessions.com/p/virtual-memory
1•fagnerbrack•57m ago•0 comments

Isomorphic Collapse of Primorial Modulus- Bypassing Arithmetic in Cryptanalysis

https://zenodo.org/records/22840364
1•GeometryKernel•1h ago•0 comments

Dashes suggest which model you're copy-pasting from

https://will-keleher.com/posts/your-dashes-suggest-which-model-youre-copy-pasting-from/
1•vismit2000•1h ago•1 comments

USB 3 Speeds Come to a Non-Pro iPhone

https://pxlnv.com/blog/usb-3-speeds-finally-come-to-a-non-pro-iphone/
1•robbiet480•1h ago•1 comments

Reality Is the Final Verifier: On Two Key Gaps in Agentic Software Engineering

https://arxiv.org/abs/2609.12039
1•matt_d•1h ago•0 comments

The Destruction of the Scottish Canon

https://asteriskmag.com/issues/15/the-destruction-of-the-scottish-canon
1•barry-cotter•1h ago•1 comments

OpenAI expects to burn $280B by 2030

https://www.ft.com/content/6011d061-eee3-4193-b3b7-8ee4155f538c
2•JumpCrisscross•1h ago•0 comments

Left Brain, Right Brain: Facts and Fantasies

https://pmc.ncbi.nlm.nih.gov/articles/PMC3897366/
1•diwank•1h ago•0 comments

Static site generator for Ghost CMS

https://github.com/SimonMo88/ghost-static-site-generator
1•Curiositry•1h ago•0 comments

Teaching Fractions According to the Common Core Standards(2011) [pdf]

https://math.berkeley.edu/~wu/CCSS-Fractions_1.pdf
1•o4c•1h ago•0 comments

Why You Can't Overcook Mushrooms and the Science Behind Them [video]

https://www.youtube.com/watch?v=XLPLCmwBLBY
3•thunderbong•1h ago•0 comments

Bringing Back Caesar IV Online

https://xetera.dev/article/bringing-back-caesar-iv-online
1•xetera•1h ago•0 comments

Inventor of ChatGPT and RLHF Launches Typesafe.ai

https://techcrunch.com/2026/09/18/a-new-kind-of-ai-model-from-a-chatgpt-inventor-is-thrilling-dev...
3•ryan_j_naughton•1h ago•0 comments

NASA's Moon Orbiter Spots New, 'Once-in-Century' Moon Crater

https://science.nasa.gov/solar-system/moon/nasas-moon-orbiter-spots-new-once-in-century-moon-crater/
2•wglb•1h ago•0 comments

Executive order on H-1B nonimmigrant visa administration

https://www.whitehouse.gov/presidential-actions/2026/09/enhancing-program-integrity-and-integrity...
13•anigbrowl•1h ago•13 comments

A more sober look at the HuggingFace incident

https://www.wsj.com/opinion/the-hugging-face-hack-wasnt-what-it-was-cracked-up-to-be-e00cf3fa
2•paulpauper•1h ago•0 comments

AI Regulation and the China Question

https://casssunstein.substack.com/p/ai-regulation-and-the-china-question
3•paulpauper•1h ago•1 comments

ASI risk debate with Nate Soares [video]

https://www.youtube.com/watch?v=OhOmLqR5nN4
2•paulpauper•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).