frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Five Principles for Generating Readable AI Text in Bulk

https://fsdatalab.github.io/blog/agent-text-at-scale/
1•pretext•46s ago•0 comments

The Economics of Intelligence

https://institute.deepmind.com/essays/the-economics-of-intelligence/
1•pretext•2m ago•0 comments

Web Bot Auth: messh SDK 0.2.0 is out

https://messh.io
1•malviyamukul•3m ago•0 comments

Show HN: Catena – lazy sequences for Go where errors are elements

https://github.com/NerdMeNot/catena
1•srinivasiyer•3m ago•0 comments

Show HN: We mapped data center regulations across 50 states and 1,462 localities

https://regbase.com/datacenters
1•pensono•4m ago•0 comments

Show HN: Sheetgraph, AI agents can understand complex spreadsheets

https://github.com/asharma327/sheetgraph
1•asharma327•4m ago•0 comments

Show HN: System Design Articles from Companies

https://abhishekr3.github.io/rss-system-design/index.html
1•3Abhishek•5m ago•1 comments

An updated Model Spec for more capable and beneficial AI

https://openai.com/index/updated-model-spec/
1•pretext•7m ago•0 comments

We asked eleven AI models to chair the drafting of a multilateral statement

https://www.karlsnotes.com/we-asked-eleven-ai-models-to-chair-the-drafting-of-a-multilateral-stat...
2•valkrieco•7m ago•0 comments

Flexible wage deals can boost competitiveness, protect jobs, study says

https://www.reuters.com/business/world-at-work/flexible-wage-deals-can-boost-competitiveness-prot...
1•frank_clover•8m ago•0 comments

Alleged Chinese spy had 'close relationship' with Nvidia boss Jensen Huang

https://nypost.com/2026/10/29/business/alleged-chinese-spy-had-close-relationship-with-nvidia-bos...
5•mgh2•10m ago•0 comments

After 28 Years Walking Across the Globe, He's Almost Home

https://www.nytimes.com/2026/10/29/world/europe/karl-bushby-walking-globe-uk.html
1•rafaelc•11m ago•0 comments

Canada to invest up to $1.6B in Toronto-based AI company Cohere

https://www.cbc.ca/news/business/canada-cohere-ai-investment-9.7401367
3•barbazoo•13m ago•1 comments

Muscle Memory

https://my.clevelandclinic.org/health/articles/muscle-memory
1•jruohonen•13m ago•1 comments

Show HN: Pretty Git Tree – Your Git history as generative art

https://hmillerbakewell.github.io/pretty-git-tree/
2•hda-hda•15m ago•0 comments

Compose tasks, not implementations (2025)

https://thesephist.com/posts/task-composition/
1•mattvr•16m ago•0 comments

What America Is Living Without

https://www.nytimes.com/interactive/2026/10/28/opinion/american-dream-affordability.html
2•ParentiSoundSys•17m ago•0 comments

What's on That Access Port?

https://danielmangum.com/posts/whats-on-that-access-port/
1•hasheddan•18m ago•0 comments

Palantir shareholders want to know when they'll get their money back

https://www.ft.com/content/fbca8eb0-76ef-4e0e-bcc9-c45c8f7d1311
7•JumpCrisscross•19m ago•1 comments

Orbit.net Extra Packages for Nats.io

https://github.com/synadia-io/orbit.net
1•northlondoner•19m ago•1 comments

Shovel Brigade

https://www.shovel-brigade.cloud/
1•airhangerf15•20m ago•0 comments

Show HN: Playmat – Browser client for XMage, the open-source MTG engine

https://github.com/arcanite24/playmat
1•arcanite24•22m ago•0 comments

Thursday: A SerenityOS for Myself

https://shantaram.xyz/posts/2026/10/a-serenityos-for-myself
2•_shantaram•23m ago•0 comments

Rogue Constellation

https://rogueon.ai/blog/rogue-constellation
1•bananaflag•24m ago•0 comments

Fugazi

https://www.merriam-webster.com/slang/fugazi
1•gregsadetsky•24m ago•0 comments

Canada to join EU network of supercomputers

https://www.politico.eu/article/canada-joining-eu-supercomputer-network/
4•jruohonen•24m ago•1 comments

Show HN: Rankings of the state of the art, each figure sourced from the maker

https://tminuslabs.space/
1•tminuslabs•25m ago•0 comments

Renewables' Share of Electricity Is Rising While Nuclear Falling

https://ourworldindata.org/data-insights/the-world-is-getting-more-of-its-electricity-from-renewa...
2•karakoram•26m ago•0 comments

Show HN: Makr – find nearby co-founders

https://makr.breadbowl.ai/
1•mxudev•27m ago•0 comments

You Can Patch Everything [video]

https://www.youtube.com/watch?v=Hxqh2LS6vMs
1•karamazov•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).