frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Solving the Jane Street Reverse Engineering Challenge

https://jestoph.com/2026/09/04/jane-street-challenge.html
1•anitil•2m ago•1 comments

Free arcade games are now available on the official White House website

https://gg.deals/freebie/5-free-arcade-games-are-now-available-on-the-official-white-house-website/
1•shaunpud•2m ago•0 comments

The auto lobby spent millions on media manipulation

https://impuls.news/en/featured/gasoline-lobby-from-electric-cars/
1•robtherobber•2m ago•0 comments

Nvidia Buys Hugging Face After OpenAI Hack. How Will Stock React?

https://beincrypto.com/nvidia-hugging-face-acquisition-openai-hack/
1•vanclaude•6m ago•0 comments

Authentication is now sometimes required to clone public GitHub repositories

https://github.com/orgs/community/discussions/206581
1•sgsjchs•7m ago•0 comments

Jujutsu 0.45.0

https://github.com/jj-vcs/jj/releases/tag/v0.45.0
1•birdculture•8m ago•0 comments

Shewv.com 40% Off

https://Shewv.com/en
1•TryLath•8m ago•0 comments

Neovim new async Lua API

https://neovim.io/doc/user/lua-async/
1•olexsmir•10m ago•0 comments

Show HN: Rendrflow your on device photo editing

https://play.google.com/store/apps/details?id=com.saif.example.imageupscaler&hl=en_US
1•hacker7777•10m ago•0 comments

A Week of Bug Reporting

https://tratt.net/laurie/blog/2022/a_week_of_bug_reporting.html
1•luu•11m ago•0 comments

Ask HN: Should internal services ever receive raw customer PII?

1•Securelytixdev•14m ago•0 comments

Apple Is Testing a Four-HomePod Surround System, Code Suggests

https://www.macrumors.com/2026/09/04/apple-testing-four-homepod-surround-system/
1•tosh•19m ago•0 comments

Simple Made Easy

https://github.com/matthiasn/talk-transcripts/blob/master/Hickey_Rich/SimpleMadeEasy.md
2•Bluestein•21m ago•0 comments

A free web app that tells you what to fix after a bad espresso shot

https://dialyourshot.com/
1•pirotechnique•23m ago•0 comments

These Linux distros run in RAM and barely touch your SSD

https://www.makeuseof.com/these-awesome-linux-distros-run-completely-in-ram-and-barely-touch-your...
1•ColinWright•25m ago•0 comments

Colorado Sees First Lawsuit Under 'Right to Repair' Law

https://www.techdirt.com/2026/09/03/colorado-sees-first-lawsuit-under-right-to-repair-law/
1•SockThief•25m ago•0 comments

Fusion Dreams Drive High-Temperature Superconductor Quest

https://spectrum.ieee.org/high-temperature-superconductor-ai-research
1•rbanffy•26m ago•0 comments

Bun v1.4.1

https://bun.com/blog/bun-v1.4.1
2•ErenayDev•30m ago•0 comments

Scientists observe Einstein's gravity in the quantum world

https://www.eurekalert.org/news-releases/1141933
1•_hao•31m ago•0 comments

Whistle Synth

https://www.jefftk.com/p/whistle-synth-mac-app
1•luu•34m ago•0 comments

Tracing np.add, all the way down

https://blog.veitheller.de/numpy.html
1•luu•36m ago•0 comments

A preview of the future IA documentation

https://intel.github.io/SDM/announcement/2026/08/20/announce-preview.html
1•luu•41m ago•0 comments

Sudden Unexpected Death in the Pfizer Trial: A Pharmacovigilance Failure

https://esmed.org/MRA/mra/article/view/7810/99193550508
1•inanothertime•43m ago•0 comments

Hot take on GPT-6 Astra

https://garymarcus.substack.com/p/hot-take-on-gpt-6-astra
2•Bluestein•44m ago•2 comments

By 2029 no computer or "machine intelligence" will have passed the Turing Test

https://longbets.org/1/
1•tetris11•44m ago•0 comments

Nvidia's AVO harness boosts Opus 5 to 100% on ARC-AGI 3

https://developer.nvidia.com/blog/nvidia-avo-reaches-100-on-arc-agi-3-demonstrating-a-frontier-le...
1•irthomasthomas•47m ago•0 comments

Cybercab motor uses no rare earth metals

https://twitter.com/elonmusk/status/2095720611695759704
2•tosh•55m ago•0 comments

German Government abandons plan for BSI constitutional amendment

https://www.heise.de/en/news/Cybersecurity-Government-abandons-plan-for-BSI-constitutional-amendm...
2•doener•59m ago•0 comments

Which European league is hardest to predict? 52,471 matches with closing odds

https://pythiafootball.com/research/hardest-league-to-predict/
1•Yiannis91•1h ago•0 comments

Punktfunk – Game streaming that outgrew GameStream

https://punktfunk.unom.io/en/
2•sagacity•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).