frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Rewriting a production compiler's IR with AI agents in five weeks

https://github.com/CommanderTvis/writing/tree/main/rr-truffle-rewrite
1•CommanderTvis•51s ago•0 comments

A $21B 'Kids in Chips' Startup Is Scooping Up Nvidia Talent

https://www.wsj.com/tech/ai/a-21-billion-kids-in-chips-startup-is-scooping-up-nvidia-talent-4d099f12
1•_tk_•2m ago•0 comments

Prompt Injection in VirusTotal's Code Insights API

https://exploiting.systems/posts/2026-08-08-prompt-injection-in-virustotals-code-insights-api
1•ropbear•6m ago•0 comments

Conlang

https://en.wikipedia.org/wiki/Constructed_language
1•svenfaw•7m ago•0 comments

As Wisconsin cities flee Flock, its shared camera network loses value

https://arstechnica.com/tech-policy/2026/08/as-wisconsin-cities-flee-flock-its-shared-camera-netw...
5•xoa•9m ago•1 comments

KDE's bookmark search ignores Brave because of one unmatched string

https://balint.blog/krunner-brave/
1•balintkorosi•9m ago•0 comments

Constantine's Bridge Has Surfaced from Beneath the Danube

https://thedebrief.org/a-mile-long-ancient-roman-engineering-marvel-has-suddenly-surfaced-from-be...
1•bookofjoe•11m ago•1 comments

Democracy vs. the machine: birth of digital age,the warnings that were ignored

https://www.theguardian.com/news/2026/aug/18/the-long-read-democracy-v-the-machine-digital-age-wa...
3•pseudolus•11m ago•0 comments

Searching for Answers from the Man Accused of Sabotaging Alaska's Senate Race

https://www.nytimes.com/2026/08/18/us/politics/dan-sullivan-alaska-senate-primary.html
1•dataflow•15m ago•0 comments

Wound/wait deadlock-proof mutex design

https://www.kernel.org/doc/html/latest/locking/ww-mutex-design.html
1•teleforce•16m ago•0 comments

Suicide hotlines don't seem to help

https://www.nber.org/papers/w35601
2•root-parent•21m ago•2 comments

US LLCs for founders whose country Stripe/Shopify don't support

https://open-entity.com
1•Doccc•22m ago•0 comments

Who bears the risk in Nvidia's $500B financing platform?

https://www.sascha-steffen.de/updates/nvidia-500bn-ai-financing-credit-risk
2•root-parent•23m ago•0 comments

AI Used to Verify Toughest Mathematics Proof Yet

https://spectrum.ieee.org/axiom-math-246-theorem-formalization
1•pseudolus•25m ago•0 comments

Show HN: Kitsunagu – A platform to find English-speaking professionals in Japan

https://kitsunagu.com/
2•byra•27m ago•1 comments

The most complex time in 20 years to build an enterprise software startup

https://eportnoy.substack.com/p/the-chaotic-enterprise-startup-period
1•eliportnoy•29m ago•0 comments

The hyperscalers' exploding 'purchase commitments' reach $1.5T

https://www.ft.com/content/1fbe47a6-bbf1-4de1-973b-8ce5baea591d
2•root-parent•30m ago•2 comments

Fredkin's Paradox

https://en.wikipedia.org/wiki/Fredkin%27s_paradox
1•throw0101a•32m ago•0 comments

Handover of In-Context Learning State Across Session Boundaries

https://arxiv.org/abs/2608.14528
1•ninadwrites•33m ago•0 comments

We still don't know how people are using AI

https://www.technologyreview.com/2026/08/18/1142226/how-people-use-ai/
4•joozio•34m ago•0 comments

Daron Acemoğlu: We Are "At the Cusp of Losing" Liberal Democracy [video]

https://www.youtube.com/watch?v=rvOfGzNn3-0
4•mertbio•34m ago•0 comments

Show HN: AirStats – Mac menu bar system monitor, 0.046% CPU idle, MIT

https://github.com/byrencheema/airstats
2•byrencodes•36m ago•0 comments

The Case for Deep Conversation in a World of Small Talk

https://thewalrus.ca/small-talk/
1•pseudolus•38m ago•0 comments

Data driven essay: Misogyny kills; misandry kills at scale

https://socialsommentary.substack.com/p/misogyny-kills-misandry-hurts-feelings
1•dandare•38m ago•0 comments

ARM64 BBML3 Feature Ready with Linux 7.3, Nvidia Olympus Workarounds

https://www.phoronix.com/news/ARM64-Linux-7.3
2•rbanffy•38m ago•0 comments

Show HN: ImageSage – Find the screenshot you want from 10k messy screenshots

https://apps.microsoft.com/detail/9mt89hd9s6sm?hl=en-US&gl=US
1•ringlochid•44m ago•0 comments

Bootstrappable Builds: How and Why

https://lwn.net/SubscriberLink/1088279/ada6cd53d01cdafa/
1•6581•48m ago•0 comments

Security Through Obscurity

https://en.wikipedia.org/wiki/Security_through_obscurity
2•thuva4•51m ago•0 comments

Meta faces pivotal kids' safety trial

https://www.politico.com/news/2026/08/18/meta-faces-pivotal-kids-safety-trial-01039903
2•0in•52m ago•0 comments

Each degree of warming could add a month of intolerable heat for 1B people

https://phys.org/news/2026-08-degree-month-intolerable-billion-people.html
4•geox•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).