frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

General Riemann Hypothesis via Exercises

https://ultronozm.github.io/grh-workbook/
1•zyklu5•47s ago•0 comments

Another senior Nvidia executive had a romantic

1•ethanmercer•1m ago•0 comments

Call Things What They Are

https://www.saturnci.com/call-things-what-they-are.html
1•theanonymousone•4m ago•0 comments

FCC authorizes Elon Musk's plans for data centers in space

https://www.politico.com/news/2026/11/25/elon-musk-space-datacenters-fcc-01183330
1•Anon84•5m ago•0 comments

What the World Asks Claude

https://sheets.works/data-viz/what-the-world-asks-claude
1•netfortius•8m ago•0 comments

US chip curbs, distillation crackdown threaten Chinese AI model development

https://www.reuters.com/world/china/us-chip-curbs-distillation-crackdown-threaten-chinese-ai-mode...
1•theanonymousone•9m ago•0 comments

Neuralink Receives FDA Approval to Launch Link Pivotal Study

https://neuralink.com/updates/neuralink-receives-fda-approval-to-launch-link-pivotal-study/
3•dvaplima•11m ago•0 comments

Ask HN: How can we build a crowdsouced due diligence platform?

2•OsrsNeedsf2P•14m ago•1 comments

How the Heck Do Touchscreens Work?

https://perthirtysix.com/how-the-heck-do-touchscreens-work
4•Yiyli•15m ago•0 comments

Show HN: Draftmux – Polish the text your coding agent writes before it goes out

https://draftmux.raine.dev/
2•rane•15m ago•0 comments

A World of Maps, Folded Flat

https://www.chartography.net/p/a-world-of-maps-folded-flat
2•subaelyo•16m ago•0 comments

Samsung TV has 650 free channels behind one button most owners never press

https://www.makeuseof.com/samsung-tv-plus/
3•surprisetalk•18m ago•0 comments

MediSync: A search platform for health articles and peer discussions

https://geekyants.com/blog/geekyants-builds-medisync-a-healthcare-social-search-platform
2•Harish_0089•19m ago•0 comments

The state of LLM: costs and capabilities

https://www.asya.ai/blog/the-state-of-llm-costs-and-capabilities
2•krsaulitis•19m ago•0 comments

Wait That's HTML? – WebGPU and WebGL experiments, each in a single HTML file

https://kimteddy.github.io/2026_wait-thats-html/
2•AlenaSato•20m ago•0 comments

The Real Book

https://en.wikipedia.org/wiki/The_Real_Book
1•vismit2000•20m ago•0 comments

The Definition of the Right to Protest

https://netpol.org/definition-protest/
1•robtherobber•22m ago•0 comments

Dr. Israel Alguindigue joins olmapp.ai advisory board

https://olmapp.ai/team.html
1•northlondoner•25m ago•1 comments

Proving a Fixed Upper Bound on Jensen's Affairs [pdf]

https://media.bitbanter.com/pdf/2026-11-25-proving-a-fixed-upper-bound-on-jensens-affairs.pdf
2•instagraham•25m ago•0 comments

Microphone deals this Black Friday _ how do you choose the right one?

https://soundsystemcalc.com/microphone-finder/
1•karaniph•26m ago•0 comments

Euro-Office comes to your desktop with the Nextcloud Office Desktop app

https://nextcloud.com/blog/euro-office-comes-to-your-desktop-with-the-nextcloud-office-desktop-app/
2•e12e•27m ago•0 comments

Etymyriad – An interactive graph of words and their origins

https://github.com/van-riper/etymyriad
1•TanZeng•29m ago•0 comments

Terraform Industries Activates Muroc Desert Test Site

https://blog.terraformindustries.com/2026/11/24/terraform-industries-activates-muroc-desert-test-...
1•ianrahman•29m ago•0 comments

SCART

https://en.wikipedia.org/wiki/SCART
1•gjvc•34m ago•0 comments

'Super Mario' NES game sells for record-breaking $96,875

https://www.upi.com/Odd_News/2026/11/25/super-mario-bros-heritage-auctions/8461795632257/
2•nephihaha•34m ago•0 comments

Humanoid robots are coming–sooner than you think

https://www.economist.com/briefing/2026/11/26/humanoid-robots-are-coming-sooner-than-you-think
2•burntcaramel•35m ago•0 comments

Where Did All the Feeds Go?

https://michaelreflects.com/blog/where-did-all-the-feeds-go/
4•ingve•39m ago•1 comments

FCC says SpaceX can deploy 1M satellites for data centers in space

https://www.npr.org/2026/11/26/g-s1-155940/fcc-spacex-satellites-data-centers-in-space
4•geox•39m ago•1 comments

Starmind (Satellite)

https://en.wikipedia.org/wiki/Starmind_(satellite)
1•jonbaer•44m ago•3 comments

Sports Krillion Game

https://www.sportskrillion.com/
1•code-less•44m 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).