frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Small web app to memorize Korean words

https://game.tolearnkorean.com/
1•bryanhogan•1m ago•0 comments

Movie Review: Levels (2024)

https://www.nerdly.co.uk/2024/11/15/levels-review/
1•walterbell•2m ago•0 comments

RF BrainScan getting out at UN now?

1•Dabbling_Dion•3m ago•0 comments

Makaton

https://en.wikipedia.org/wiki/Makaton
1•nomilk•4m ago•0 comments

MD5 Research Challenge

https://solveathome.org/projects/md5
1•jonbaer•8m ago•0 comments

Replaced

https://ghuntley.com/replaced/
1•kaeruct•12m ago•0 comments

Opus Core 1.2 is now available

1•pragidi•13m ago•0 comments

Lovable Style Builder via CF Inference GLM-5.3, Kimi K2.7 Code and GLM-5.3 Flash

https://mainbrella.com/blog/lovable-style-builder-cloudflare-inference/
2•cs1996•13m ago•0 comments

Show HN: Bob

https://bob.spif.fyi/
1•androsynth89•15m ago•0 comments

SQLite 3.54.0 Released

https://sqlite.org/releaselog/3_54_0.html
2•thunderbong•16m ago•0 comments

AI's leaders (probably) aren't faking their fear

https://www.vox.com/politics/505834/ai-doom-anthropic-openai-pr
3•simianwords•18m ago•0 comments

Orkut: You deserve better from social media

https://orkut.com/en/
1•yarapavan•26m ago•1 comments

From WordPress to Astro: Zero Maintenance, Maximum Control

https://www.mikeroberto.com/wordpress-astro-migration
1•larrysalibra•30m ago•0 comments

Neuroscience Can Make Decluttering Easier

https://www.nytimes.com/2026/10/11/opinion/clutter-spring-cleaning-psychology.html
2•gumby•30m ago•1 comments

TasteRoute: Personalized Routing for Video Generation

https://zrt.wtf/publication/2026-10-10-taste-route
1•blackcat201•32m ago•0 comments

Show HN: Infinite – open-source node-based DAW for visuals, music and code

https://github.com/n1m21n/Infinite
1•n1m21n•35m ago•0 comments

LiteReview: A self-hosted plane for configuring PR review agents

https://github.com/BerriAI/litereview
1•mfkhalil•38m ago•0 comments

Distanser – Measure Anything on Screen

https://apps.apple.com/us/app/distanser/id6805159232?mt=12
1•j-sanden•40m ago•1 comments

Luke Nichols' (Outdoor Boys YouTube channel) full commencement speech [video]

https://www.youtube.com/watch?v=ttQd5bEdfL0
1•nomilk•41m ago•0 comments

LineageOS 24.0

https://lineageos.org/Changelog-32/
4•timschumi•43m ago•0 comments

Ask Claude Code for a Svelte table and it writes 1k lines of its own

https://svgrid.com/blog/ai-assistant-writes-its-own-table/
1•boikom•45m ago•0 comments

DARPA Selects Companies for Final Stage C Verification Under QBI

https://quantumcomputingreport.com/darpa-selects-atom-computing-diraq-ibm-and-ionq-for-final-stag...
1•donutloop•45m ago•0 comments

Europol urges early action to protect crypto and data from quantum threats

https://www.europol.europa.eu/media-press/newsroom/news/europol-urges-early-action-to-protect-cry...
2•donutloop•48m ago•0 comments

Data Engineering Is the Cache Invalidation Problem FT. Josh Wills

https://motherduck.com/blog/cache-invalidation-problem-data-engineering-josh-wills/
2•zeristor•48m ago•0 comments

No Doodle

https://chromewebstore.google.com/detail/no-doodle/dkbobaklmnjfomfnchhbfcljaeccnmmk
1•sanepara•49m ago•0 comments

Tech firms pledge $2.4B in computing power to Trump's Genesis Mission

https://www.politico.com/news/2026/10/08/tech-firms-pledge-2-4-billion-in-computing-power-to-trum...
2•donutloop•50m ago•0 comments

Show HN: Suta – A skill to reduce AI slop in generated UIs

https://github.com/Guksu/suta
1•yung3152•52m ago•0 comments

Show HN: Another App Store Screenshot Creator, but with high quality images

https://screenbuilder.app/
1•bert2002•1h ago•0 comments

Simple heuristics to run a research group (2022)

https://onlinelibrary.wiley.com/doi/10.1002/pchj.533
1•Tomte•1h ago•0 comments

Stackoverflow 2026 Developer Survey

https://stackoverflow.blog/2026/10/06/the-results-of-the-2026-developer-survey-are-here/
2•marciob•1h ago•1 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).