frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•10mo 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•10mo 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•10mo 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).

The Download: gig workers training humanoids, and better AI benchmarks

https://www.technologyreview.com/2026/04/01/1134993/the-download-gig-workers-training-humanoids-b...
1•joozio•23s ago•0 comments

Show HN: Agent Instructions and Bootstrap Components

1•oldnewthing•37s ago•0 comments

Show HN: A new model architecture because transformers are not enough

https://interfaze.ai
1•khurdula•1m ago•0 comments

Systemd: Improve Varlink adoption by changing the project name

https://github.com/systemd/systemd/issues/41448
1•allddd•1m ago•0 comments

Evaluating LLMs for Dynamic, Multimodal Clinical Decision-Making [pdf]

https://mackinstitute.wharton.upenn.edu/wp-content/uploads/2026/02/Evaluating-LLMs-for-Dynamic-Mu...
1•Topfi•2m ago•0 comments

LLMinate – LLM Captcha System

https://kaindume.bearblog.dev/llminate-llm-captcha-system/
1•kaindume•2m ago•0 comments

Why Iran targeted Amazon data centers and what that does change about warfare

https://theconversation.com/why-iran-targeted-amazon-data-centers-and-what-that-does-and-doesnt-c...
1•the-dude•3m ago•0 comments

AT&T signs deal worth $2B to upgrade emergency cellular network

https://www.reuters.com/business/media-telecom/att-signs-deal-worth-2-billion-upgrade-emergency-c...
1•voxadam•4m ago•0 comments

Drivers in Dire Crashes Relied Too Much on Ford's Hands-Free Technology – NTSB

https://www.wsj.com/business/autos/drivers-in-dire-crashes-relied-too-much-on-fords-hands-free-te...
1•bookofjoe•4m ago•1 comments

Ruby Central report reopens wounds over RubyGems repo takeover

https://www.theregister.com/2026/04/01/ruby_central_report/
1•jjgreen•6m ago•1 comments

There is no randomising a technological revolution

https://olihanney.substack.com/p/there-is-no-randomising-a-technological
1•econlmics•7m ago•0 comments

I built a local, open-source thermal printer appliance

https://old.reddit.com/r/selfhosted/comments/1s9jz4f/i_built_a_fully_local_opensource_thermal_pri...
1•thunderbong•9m ago•0 comments

Fables and Fairy Tales

https://www.globalgreyebooks.com/category/ebooks/fables-fairy-tales-page-1.html
1•joebig•9m ago•0 comments

Show HN: PDFation – Cursor for PDFs

https://pdfation.yet-to-be.com/
1•wyxuan•10m ago•0 comments

Web Search for Agents in 2026

https://michaellivs.com/blog/web-search-for-agents-2026/
2•speckx•10m ago•0 comments

Magic mushroom-infused products appear in Colorado gas stations

https://theconversation.com/magic-mushroom-infused-products-appear-in-colorado-gas-stations-what-...
2•PaulHoule•10m ago•0 comments

List of OpenTelemetry tools, guides, and resources

https://github.com/deeloc206/awesome-opentelemetry
1•roxy18•10m ago•0 comments

Show HN: Rustobol – Compile Rust to COBOL

https://github.com/romanagenda/rustobol/
1•mikece•11m ago•0 comments

Feltsense – Autonomous Founders

https://feltsense.com/
1•Jupe•11m ago•0 comments

Opt out of all April Fools day pranks with one form

http://cwillu.com/april-fools-opt-out.html
1•cwillu•12m ago•0 comments

SpaceX registers to take rocket maker public in blockbuster IPO

https://www.reuters.com/business/aerospace-defense/spacex-registers-take-rocket-maker-public-bloc...
2•SilverElfin•12m ago•1 comments

An open source rubber ducking robot, also a joke

https://duck-duck-duck.edges.ideo.com/
1•jftesser•13m ago•0 comments

The LinkedIn for Devs

https://www.topsignal.dev
1•heyjonmor•13m ago•0 comments

UK Navy captain of nuclear submarine steps down after link to Chinese spy case

https://www.theguardian.com/uk-news/2026/apr/01/navy-captain-steps-back-from-duties-link-mp-husba...
2•Betelbuddy•14m ago•0 comments

Namera – Domain, trademark, and social handle checks from one CLI

https://github.com/siddmax/Namera
1•Tanzimsaadi•15m ago•0 comments

Show HN: LiveTap – Analyze live streaming data with Claude Code Channels

https://github.com/livetap/livetap
3•rsafaya•15m ago•0 comments

Today. Artemis II around the moon for all humanity

https://twitter.com/WhiteHouse/status/2039349547181207910
3•keepamovin•15m ago•1 comments

4Chan Lawyers Introduce British First Amendment

https://www.therage.co/4chan-uk-free-speech-act/
2•iamnothere•16m ago•0 comments

After 40 years, arbitrary code execution has been achieved in Super Mario Bros [video]

https://www.youtube.com/watch?v=bNulp6cDqUU
2•yacin•19m ago•0 comments

Show HN: AgentBoard – Track your hours and tokens spent coding with AI

https://agentboard.cc
3•Snorix•19m ago•0 comments