frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Executable Archaeology: Reanimating the Heuristic Compiler (1961) and KBEmacs (1984)

https://arxiv.org/abs/2610.36341
1•abrax3141•4m ago•0 comments

Lynx: A lightweight DAW open source with the FL Studio workflow

https://lynx-share.com/
1•modinfo•7m ago•0 comments

Microsoft Offers Buyouts to 60k Employees

https://www.nytimes.com/2026/10/26/technology/microsoft-buyouts-ai-spending.html
1•lxm•9m ago•0 comments

Shiny Glass Skyscrapers Are a Hot Thing

https://www.nytimes.com/2026/10/26/climate/glass-skyscrapers-heat-climate-change.html
1•lxm•10m ago•0 comments

Reserver is gone, but PyPI's name reservation problem isn't

https://medium.com/@social_62465/reserver-is-gone-but-pypis-name-reservation-problem-isn-t-cfad3a...
1•sadrasabouri•12m ago•0 comments

Git for US Legislation

https://lexifina.com/blog/git-for-the-us-code
2•alansaber•18m ago•0 comments

Dueling proofs from OpenAI and Anthropic astound scientists

https://www.scientificamerican.com/article/dueling-proofs-from-openai-and-anthropic-astound-scien...
1•aanet•18m ago•1 comments

Do Guardrails Make AI Coding Agents Better? What 270 Runs Showed

https://secondtimeisabug.com/blog/coding-agent-guardrails-270-runs/
1•Bootstrapper909•20m ago•0 comments

Show HN: Slopcap

https://github.com/dmead/slopcap
1•dmead•21m ago•0 comments

Logitech Launches MX Master 4 Developer Edition Mouse

https://futurefive.com.au/story/logitech-launches-mx-master-4-developer-edition-mouse
1•sumnole•23m ago•0 comments

Egres: A Postgres-compatible database for heavy, multi-tenant workloads

https://manishrjain.com/egres/
1•simonpure•25m ago•0 comments

247A, Notes 3: Singular integral operators

https://terrytao.wordpress.com/2026/10/27/247a-notes-3-singular-integral-operators/
1•smilelamp•25m ago•0 comments

Billion-query-per-second lookup tables in C++

https://lemire.me/blog/2026/10/26/billion-query-per-second-lookup-tables-in-c/
3•foltik•26m ago•0 comments

A little directory of small, weird websites

https://culdesac.site/
2•henrychannel•26m ago•0 comments

VibeScout

https://play.google.com/store/apps/details?id=com.kennethwahl.vibescout&hl=en_US
1•bustapheliac•28m ago•0 comments

Millions Use Antidepressants. We Still Don't Understand How They Work

https://www.nytimes.com/2026/10/27/science/how-antidepressants-ssri-work.html
2•gumby•30m ago•2 comments

Workshop on Modular forms around string theory (2013)

https://www.fields.utoronto.ca/programs/scientific/13-14/calabi-yau/modular/index.html
1•gone35•30m ago•0 comments

Google can now use your Gmail data for ads: How to turn it off

https://proton.me/blog/gmail-ads
6•devonnull•36m ago•0 comments

Women, Work and Caregiving Through the Arc of Family Life

https://www.pewresearch.org/social-trends/2026/10/22/women-work-and-caregiving-through-the-arc-of...
1•gmays•39m ago•0 comments

Starship Telemetry

https://telemetry.starshipspaceprogram.com/
1•delichon•42m ago•0 comments

Stealing a Trick from Nuclear Physics to Solve a Puzzle

https://cezarcocu.com/blog/stealing-a-physics-trick/
1•ggamecrazy•42m ago•0 comments

Show HN: A calculator for gas costs and road trip expenses

https://gettripcost.com/
1•richardharmer•45m ago•0 comments

Building Slack at Salesforce. Part teo

https://buildingslack.com/salesforce-part-two/
2•sanj•45m ago•0 comments

Building Slack at Salesforce. Part one

https://buildingslack.com/salesforce-part-one/
1•sanj•46m ago•0 comments

America Needs Explosives for Its Drones. Odin Energetics Is Making Them

https://www.wsj.com/politics/national-security/america-needs-explosives-for-its-drones-this-start...
1•JumpCrisscross•49m ago•0 comments

Microsoft offers voluntary buyouts as AI leads to efficiency push

https://www.cnbc.com/2026/10/26/microsoft-msft-voluntary-buyouts.html
2•gmays•49m ago•1 comments

Rest of World faces prospect of shutting down

https://www.semafor.com/article/10/25/2026/rest-of-world-faces-prospect-of-shutting-down
1•HotGarbage•50m ago•0 comments

Tiny model, full provenance – Apache Sourcelume

https://rai.apache.org/blog/tiny-model-full-provenance.html
1•qainsights•54m ago•0 comments

A hand-picked gallery of AI-generated motion graphics and their prompts

https://motioncrackers.com
1•Adam-Hincu•54m ago•0 comments

Show HN: Misery in America

https://sightspinner.ai/blog/misery-in-america-2026-10-28.html
2•sightspinner•57m ago•7 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).