frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

An open-source diagram skill for designer

https://github.com/cathrynlavery/diagram-design
1•Nina_antalpha•1m ago•0 comments

Is PDF a Problem for AI?

https://pdf4wcag.com/blog-news/is-pdf-a-problem-for-ai
1•JilBill•8m ago•2 comments

Finding All Solutions to LinkedIn-Queens Puzzle

https://wyounas.github.io/model-checking/puzzles/2026/06/06/finding-all-solutions-to-linkedin-que...
1•simplegeek•11m ago•0 comments

SpaceX sues to block release of tax-break records for its Texas Terafab project

https://www.businessinsider.com/spacex-terafab-tax-break-records-ai-transparency-texas-2026-9
1•snikolaev•11m ago•0 comments

Show HN: 1080p is 920px tall – 1k real browser viewports

https://screensize.net/reports/viewport-stats
1•zenpe•11m ago•0 comments

Language Makes Power Feel Like Common Sense

https://linguistically.substack.com/p/antonio-gramsci-how-language-makes
1•akbarnama•12m ago•0 comments

Australian insurer offers discount to self-driving car owners

https://www.smh.com.au/business/consumer-affairs/humans-make-mistakes-insurer-offers-discount-to-...
2•Alien1Being•13m ago•0 comments

Human bottleneck will not let AI replace any jobs

2•jatindavis05•15m ago•0 comments

Open-source project: Use ChatGPT Web models directly in Codex

https://github.com/miuuyy/codex-chatgpt-web
1•Moon_Y•19m ago•0 comments

Confessions of an Unrepentant Slop Snob

https://charity.wtf/p/confessions-of-an-unrepentant-slop
1•BerislavLopac•22m ago•0 comments

Show HN: Descles, response level LLM message control with HITL approval flows

https://www.descles.com/
1•chiatzen•25m ago•0 comments

If Astra was trained on 100k Blackwell GPUs, what happens with 1M Rubin?

https://twitter.com/JensenHuang/status/2096700264569090384
2•aurareturn•26m ago•1 comments

South Africa's weigh-and-pay shops are tackling 'poverty tax' head on

https://www.theguardian.com/global-development/2026/sep/14/south-africa-weigh-and-pay-shops-food-...
1•ljf•27m ago•0 comments

Three Reasons Europe learned to distrust Big Tech before America did

https://thebulletin.org/premium/2026-09/three-reasons-europe-learned-to-distrust-big-tech-before-...
1•vrganj•29m ago•0 comments

My experience of September 11, 2001, from across the Hudson

https://medium.com/freedomofthought/if-nobody-loved-me-the-city-did-27ad19dbcb8a
1•raynchad•29m ago•0 comments

Ansto nuclear reactor marks 20 years of health and technology innovation

https://www.abc.net.au/news/2026-09-14/ansto-opal-nuclear-reactor-celebrates-20-years/107132928
1•ggm•29m ago•0 comments

Teaching a fruit fly to play chess

https://flychess-hq.vercel.app
1•qsort•29m ago•0 comments

The Cost of Omelas – 10 centuries of total people killed by nation states

https://omelas-dj1.pages.dev
1•epsteingpt•38m ago•1 comments

War over robotaxis in NYC heats up with retracted Waymo report, 'Autokill' novel

https://gothamist.com/news/war-over-robotaxis-in-nyc-heats-up-after-retracted-waymo-report-and-au...
1•tape_measure•39m ago•0 comments

What an ERC-4626 price test shows

https://medium.com/@giladha/what-an-erc-4626-price-test-actually-shows-9fce352c5bde
1•giladha•39m ago•0 comments

Show HN: I made an unlimited TikTok video generator to get views on the internet

https://cloney.app
1•phanahm•40m ago•0 comments

Ask HN: Why are HDMI connectors hard to reach in 2026?

1•final_moss•41m ago•1 comments

No cities on the Moon – there isn't enough water, scientists say

https://www.frontiersin.org/news/2026/09/14/no-cities-on-the-moon-there-isnt-enough-water-frontie...
2•geox•43m ago•0 comments

Another Slice of Swiss Cheese for Untrusted Monitoring

https://www.lesswrong.com/posts/zJWgfsad8o9Y8E9sb/another-slice-of-swiss-cheese-for-untrusted-mon...
2•joozio•44m ago•0 comments

Every tool you need, right in the browser

https://footrue.com/
2•rajeshrajappan•47m ago•0 comments

Can Geneticists Fight Disease by Targeting 'Nurture' Instead of 'Nature'?

https://www.nytimes.com/2026/09/08/science/epigenetic-editing.html
1•hodgesrm•47m ago•0 comments

Apple's Always-Listening Tech: A Privacy Nightmare Waiting to Happen

https://this.weekinsecurity.com/watch-what-you-say-apple-opens-the-door-to-a-nightmare-world-of-a...
1•signa11•48m ago•0 comments

Why big tech will hate the Australian tax office's latest ruling

https://theconversation.com/why-big-tech-will-hate-the-australian-tax-offices-latest-ruling-291571
4•billybuckwheat•49m ago•0 comments

Michaelsoft Binbows

https://binbows.net/
2•austinallegro•56m ago•0 comments

Closure Compiler: A JavaScript checker and optimizer

https://github.com/google/closure-compiler
3•csmantle•57m 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).