frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Thoughts About Scaling Law

https://twitter.com/jietang/status/2089941544581403107
1•tosh•13s ago•0 comments

Bezier Curves from the Ground Up (2016)

https://jamie-wong.com/post/bezier-curves/
1•vismit2000•34s ago•0 comments

Bun 1.4 Rust rewrite is not looking good

https://tipiirai.com/writing/bun-rust-rewrite-worries
1•tipiirai•59s ago•0 comments

Lattice: An isometric game kit designed to be written by agents

https://lattice.aniruddh.tech/
1•achandratre•1m ago•0 comments

Six Months Without Electricity, Years Without Supermarkets

https://www.quora.com/profile/Mohamed-Aboelez-15/Six-Months-Without-Electricity-Years-Without-Sup...
3•mohmdsad•5m ago•0 comments

ChatGPT for Teens

https://help.openai.com/en/articles/20001421-chatgpt-for-teens
1•Bluestein•5m ago•0 comments

Teen Culture Has Always Been Co-Opted. In 2026, It's Reached New Heights

https://www.teenvogue.com/story/teen-culture-has-always-been-marketable-in-2026-its-reached-new-h...
1•Tomte•5m ago•0 comments

The Pentagon Wars

https://en.wikipedia.org/wiki/The_Pentagon_Wars
1•Bluestein•9m ago•0 comments

Ask HN: How to Share Tools with Coworkers

1•lordlaw•9m ago•0 comments

China orders state agencies to uninstall Windows as it cuts dependence on US

https://www.indiatoday.in/technology/news/story/china-orders-state-agencies-to-uninstall-windows-...
2•roflcopter69•10m ago•0 comments

Time Travel on Professional Profiles

https://www.nber.org/papers/w35546
1•helsinkiandrew•11m ago•0 comments

Tough days at GitHub, a continuing series

https://surfingcomplexity.blog/2026/08/18/tough-days-at-github-a-continuing-series/
1•azhenley•13m ago•0 comments

Curvature Beziers – Improving on a timeless recipe

https://acko.net/blog/curvature-beziers/
1•boxed•15m ago•0 comments

Susan Kare:Designing Icons and Graphics for the Original Mac [video]

https://www.youtube.com/watch?v=YEvLKzsEwMw
1•dhruv3006•17m ago•0 comments

Data inaccessible on Microsoft 365 for nonprofits

https://www.reddit.com/r/nonprofit/comments/1ub52pt/data_inaccessible_on_microsoft_365_for_nonpro...
1•petethomas•18m ago•0 comments

Ask HN: Software Design resources on the lower/class/module level

1•needfish•21m ago•0 comments

ZEON – A token-efficient data format for LLMs

https://zeon-eight.vercel.app/
1•Schicksal•23m ago•0 comments

Our summer fastest-growing vendors list just dropped

https://twitter.com/brexHQ/status/2089412872094773735
1•porridgeraisin•25m ago•0 comments

Designing AI with character: what we learned building Berd

https://block.xyz/inside/designing-ai-with-character-what-we-learned-building-berd
1•thm•25m ago•0 comments

"Hill-climbing" is Silicon Valley's latest bit of shit jargon

https://nudged.himynamesdave.com/musings/hill-climbing-is-silicon-valleys-latest-bit-of-shit-jargon/
1•panoramas4good•26m ago•0 comments

Get feedback on your AI slop. no accounts

https://slopornot.simplicated.dev
1•karenimnotkaren•27m ago•0 comments

Show HN: AnswerRank – AEO Tool for online businesses

https://answerrank.so/
1•not_wowinter14•28m ago•0 comments

Show HN: Online Bubble Level

https://abubblelevel.com/
1•artiomyak•31m ago•0 comments

Ask HN: Cloudflare Smart Placement

1•bansalvip•33m ago•0 comments

AI Stock Research Assistant · Streamlit

https://ai-stock-research-kiaan.streamlit.app
1•KiaanKothari•34m ago•1 comments

Looking for an ArXiv Endorser – AI / Computer Science

https://github.com/paibyun9/EGA-V9
1•lcm3•36m ago•2 comments

BYOKs for an LLM with a Brain

https://alicebraincore.web.app
1•kindsocial•36m ago•0 comments

The DuckDB MySQL engine at 500 GB

https://www.percona.com/blog/the-duckdb-mysql-engine-at-500-gb/
2•theanonymousone•40m ago•0 comments

Penn State cocaine trafficking ring involved 2 fraternities, authorities say

https://abcnews.com/US/wireStory/penn-state-cocaine-trafficking-ring-involved-2-fraternities-1357...
3•vinni2•40m ago•0 comments

Deft – an authentic human writing model

https://deftwriting.com
1•andrewlin247•54m 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).