frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

What it costs to run a one-Rails-app SaaS per month

https://www.railsreviews.com/articles/what-it-costs-to-run-a-rails-saas
1•doppp•3m ago•0 comments

President says Netanyahu will have 'no choice' but to accept a deal with Iran

https://www.ft.com/content/a0ce59f9-fbde-49e8-9158-fba3d4079859
2•Jimmc414•5m ago•0 comments

Force-sensing mobile microrobotic grippers for gentle and precise bioassembly

https://pubs.aip.org/aip/apb/article/10/2/026103/3388070/Force-sensing-mobile-microrobotic-grippe...
1•PaulHoule•6m ago•0 comments

New drug 'functionally cures' many hepatitis B virus infections

https://www.science.org/content/article/new-drug-functionally-cures-many-hepatitis-b-virus-infect...
1•gmays•6m ago•0 comments

Show HN: Preseason.ai – Open-source benchmark of devtool choices, ranked by LLM

https://www.preseason.ai
1•widenrun•7m ago•0 comments

DeepSeek V4 Pro beats GPT-5.5 Pro on precision

https://runtimewire.com/article/deepseek-v4-pro-beats-gpt-5-5-pro-on-precision
2•yogthos•8m ago•0 comments

Phonestheme

https://en.wikipedia.org/wiki/Phonestheme
1•davidbarker•9m ago•0 comments

Newborns' cry melody is shaped by their native language

https://pubmed.ncbi.nlm.nih.gov/19896378/
1•davidbarker•10m ago•0 comments

Dev log:Made an app blocker unlocks by verifying real App HealthKit data

https://disciplinelock.com/
1•zichengwang•10m ago•0 comments

1worldflag: A blue dot on a transparent background

https://1worldflag.com/
1•davidbarker•10m ago•0 comments

Attitudes toward same-sex marriage and transgender issues are shifting

https://apnews.com/article/gallup-poll-same-sex-marriage-morality-e12acb151446ac1b7970c0825bf1d072
2•petethomas•13m ago•0 comments

Shopify Theme Detector,What Shopify Theme Is This?

https://storetrace.link/tools/theme-detector
1•bitvvip•16m ago•0 comments

Lawsuit Seeks to Stop the UFC Fight on the White House South Lawn

https://apnews.com/article/white-house-ufc-fight-lawsuit-trump-birthday-da95554d7137ca297dd47951a...
3•petethomas•19m ago•0 comments

Teenage Engineering: Introducing APC-2

https://teenage.engineering/products/apc-2
37•vthommeret•20m ago•7 comments

Ask HN: What are the best examples of good technical writing you know of?

3•CSMastermind•20m ago•2 comments

Making Software – Image Compression

https://www.makingsoftware.com/chapters/image-compression
2•Brajeshwar•24m ago•0 comments

Pleasant Reader – a cozy reader mode for Chrome/Brave – (Chrome extension)

https://github.com/rajveerb/pleasant-reader
2•rajveerb•24m ago•0 comments

7.8 magnitude earthquake shakes part of southern Philippines. Tsunami possible

https://www.yahoo.com/news/weather-news/articles/as--philippines-earthquake-001322726.html
15•mikhael•25m ago•3 comments

Bayesian Thinking for Toddlers: The Cartoon

https://www.bayesianspectacles.org/bayesian-thinking-for-toddlers-the-cartoon/
2•jruohonen•25m ago•0 comments

Tech Worker Ethical Concerns Research Project

1•jonleuen•28m ago•0 comments

last30days-skill

https://github.com/mvanhorn/last30days-skill
1•pykello•30m ago•0 comments

Ask HN: What's good for VR these days, free and paid

3•razorbeamz•34m ago•2 comments

How Gambling Turned Your Feed into Slop

https://www.youtube.com/watch?v=Lw6gpYJzujE
4•flakespancakes•41m ago•0 comments

How does anybody test phone applications that do location tracking?

https://twitter.com/LyleMakes/status/2063784301594853657
1•lylejantzi3rd•42m ago•2 comments

Atlas: Metadata-first proof chains for critical digital actions

https://github.com/rodriguezaa22ar-boop/atlas-trust-infrastructure/discussions/85
2•astra_omnia•45m ago•0 comments

I asked a few hundred builders how they decide it's time to launch

https://nicklaunches.com/blog/week-5-recap-june-07-2026/
1•nicklaunches•46m ago•0 comments

Against Taste

https://minutes.substack.com/p/against-taste
3•el_benhameen•52m ago•0 comments

Parallel Intelligence and Cognitive Warfare

https://jackson-t.com/parallel-intelligence-and-cognitive-warfare/
2•jthuraisamy•53m ago•0 comments

EMILIAProtocol-an open standard for human sign-off on irreversible agent actions

https://www.emiliaprotocol.ai/spec
2•EmiliaStar•54m ago•0 comments

Does the Web Use DNSSEC and Email Authentication? Scanning TopM Domains

https://www.pwndefend.com/2026/06/06/email-and-domain-security/
1•882542F3884314B•1h 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).