frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

AffectUI

https://www.affectui.com/
1•handfuloflight•53s ago•0 comments

How to Run Turing-Complete Malware in PyTorch's Backward Pass

https://elonlit.com/scrivings/how-to-run-turing-complete-malware-in-pytorchs-backward-pass/
1•simonpure•58s ago•0 comments

Portal Texas Used to 'Rubber Stamp' Data Centers Down After 404 Media Reporting

https://www.404media.co/texas-commission-on-environmental-quality-portal-down/
1•cdrnsf•1m ago•0 comments

Show HN: My vibecoded game got a glow up

https://tiberava.online
5•cayodister•2m ago•0 comments

Anthropic's non-existant customer support

1•ChrisMitSchmiss•3m ago•0 comments

'M*A*S*H', 'Top Gun' actor passes away at 93

https://ktla.com/entertainment/mash-top-gun-actor-passes-away-at-93/
1•Bender•4m ago•0 comments

We're about to learn that all the code written in the past 20 years was all slop

https://twitter.com/thomasunise/status/2113306001835217016
10•wearehumxn•5m ago•2 comments

Mass Effect: Universe Trailer

https://www.reddit.com/r/masseffect/comments/1xclmpu/mass_effect_universe_trailer/
1•CharlesW•5m ago•0 comments

Some Primates Become Cautious of Germs in the Wake of a Viral Outbreak

https://today.ucsd.edu/story/like-humans-some-primates-become-cautious-of-germs-in-the-wake-of-a-...
1•gmays•6m ago•0 comments

New Device 'Bricks' Your Phone When You Enter Your Bedroom

https://www.cnet.com/health/sleep/new-device-bricks-phone-when-enter-bedroom/
2•speckx•6m ago•0 comments

Linus Torvalds Eliminates Unsafe __get_user() __put_user() Functions In 7.4

https://www.phoronix.com/news/Linus-Kills-Get-Put-User-Linux
1•Bender•6m ago•0 comments

Technical details of php2shell discovered 2 years ago

https://tolmo.com/blog/faster-than-anyone-can-fix-them/
2•smurda•8m ago•0 comments

Starbound Labs – Building drone light show hardware and software together

https://www.starboundlabs.com/
1•tblane•9m ago•0 comments

Backdoored robot tries its hand at finger chopping and cat cooking

https://www.theregister.com/ai-and-ml/2026/10/22/backdoored-robot-tries-its-hand-at-finger-choppi...
1•Bender•9m ago•0 comments

Show HN: OpenPanopticon, a Geographic OSINT Viewer

https://github.com/hexadec-0/OpenPanopticon
1•hexadec•9m ago•0 comments

Flaim

https://flaim.app
1•skylinestandard•10m ago•0 comments

Looking for Beta Testers / Feedback / First Couple Users

https://presailapp.com
1•bransfieldhenry•10m ago•0 comments

Replacing PyTorch with Julia and Reactant: One Year In

https://csvance.dev/posts/2026-10-22-reactant-end-to-end/
1•leephillips•12m ago•0 comments

Reverse Engineering Captcha-Bypass

https://www.youtube.com/watch?v=Tv7zbDW7DNE
1•seleniumbase•12m ago•1 comments

Bind CVE-2026-94300: Concurrent GSS-TSIG messages corrupt memory

https://kb.isc.org/docs/cve-2026-94300
2•ezekg•14m ago•0 comments

Sandboxable port of busybox for agents in Go

https://github.com/rcarmo/go-busybox
2•jcbhmr•14m ago•0 comments

On-Device Dictation

https://keeptinkr.ing/
1•TinkrFounder•15m ago•1 comments

Show HN: Secure your AI agents on Mac

https://installplango.com/
2•frohrer•15m ago•2 comments

Game You'll Never Play – Steel Battalion [video]

https://www.youtube.com/watch?v=PTyu57YHjb0
1•franczesko•16m ago•0 comments

Making Kokoro TTS 100x faster without knowing how

https://mesmer.tools/free-tools/tts-generator
1•mesmertech•17m ago•1 comments

Ordo: A self-hosted hierarchical job scheduler (AGPL)

https://ordoscheduler.com/app/#docs/overview
1•ngrahamcpan•19m ago•0 comments

Revenge of the Nerds

https://en.wikipedia.org/wiki/Revenge_of_the_Nerds
2•oxqbldpxo•20m ago•2 comments

Show HN: A terminal app for the RG DS Plus

https://github.com/NilsSlui/rgds-terminal
1•nilsio•21m ago•0 comments

Ask HN: Have the PHP vulnerabilities been exploited?

3•crisnoble•22m ago•0 comments

Show HN: Linear A decipherment open-sourced

https://www.plasma.ai/research/linear-a
3•NatalieTrono•24m 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).