frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

How "Independent" AI Safety Groups Are Pumping Anthropic IPO – Internet of Bugs

https://www.youtube.com/watch?v=pyRG_5dCrfg
2•agnosticmantis•2m ago•0 comments

Show HN: Recycle old hw HP Laserjet 1005 driver for Windows 11 x64 with Codex

https://github.com/hernandp/OpenHPZJS1005-x64-drv
2•hernandipietro•2m ago•0 comments

Provisioning Networks for AI Supercomputers: A Trace-Driven Study of Performance

https://arxiv.org/abs/2610.41700
2•matt_d•3m ago•0 comments

Show HN: Project badges to show LLM preferences

https://agentsp.lease/
2•jmhobbs•4m ago•0 comments

The Median Isn't the Message [pdf]

https://people.umass.edu/biep540w/pdf/Stephen%20Jay%20Gould.pdf
2•hiohio•7m ago•0 comments

Red5 Brings Distance Independence to the Revolution in Live Production

https://www.red5.net/blog/red5-brings-distance-independence-to-the-revolution-in-live-production/
2•mondainx•9m ago•0 comments

How Warp Speed Works (2023)

https://science.howstuffworks.com/warp-speed.htm
2•NaOH•12m ago•0 comments

Car T-cell therapy shows promise in patients with multiple myeloma

https://news.massgeneralbrigham.org/en/dual-targeted-car-t-cell-therapy-for-treatment-resistant-m...
2•geox•14m ago•0 comments

Top Command and Control (C2) with a Beacon for macOS

https://medium.com/@nukeratframework/top-5-command-control-c2-with-a-beacon-for-macos-4e6f88a6225f
2•JohnTheTitor•18m ago•0 comments

Claude was trained on protein sequences at scale

http://xinmingtu.cn/blog/2026/claude-opus-5-5-protein-sequences/
2•gmays•19m ago•0 comments

Lampin' #1: Let There Be Light

https://yakshed.com/lamp/
3•gregsadetsky•19m ago•0 comments

Climate change is making some African deserts greener

https://www.economist.com/middle-east-and-africa/2026/11/17/climate-change-is-making-some-african...
5•andsoitis•20m ago•0 comments

What-when-how – In Depth Tutorials and Information

https://web.archive.org/web/20240301024646/https://what-when-how.com/
2•ankitg12•24m ago•0 comments

Elon Musk Says Sean Duffy Turned Down Free Starlink for FAA

https://finance.yahoo.com/technology/articles/elon-musk-says-sean-duffy-014354751.html
2•canucker2016•26m ago•1 comments

Show HN: Tinnitus frequency finder and audio notch tool

https://trynotched.com/find
2•brianrhea•27m ago•1 comments

H-1B Executive Actions in 2026 [pdf]

https://www.everycrsreport.com/files/2026-10-14_IN12747_fcb1389788aa7b9102b795882af042e85d20532c.pdf
2•rawgabbit•29m ago•0 comments

Engineering Vitals in the Age of AI

https://octopus.com/blog/engineering-vitals-in-the-age-of-ai
3•paulstovell•30m ago•0 comments

Backdoor attacks against Machine Learning IRL

https://phrack.org/issues/73/backdoor-attacks-against-machine-learning-irl_md
2•Alien1Being•31m ago•1 comments

San Diego dumps both Flock cameras and smart streetlights

https://arstechnica.com/tech-policy/2026/11/san-diego-dumps-both-flock-cameras-and-smart-streetli...
2•pilingual•33m ago•0 comments

Word Machines for Weird Machines

https://phrack.org/issues/73/word-machines-for-weird-machines_md
2•Alien1Being•33m ago•1 comments

Disaggregated Inference from the Ground Up

https://www.cerebras.ai/blog/disaggregated-inference-from-the-ground-up
2•peter_d_sherman•35m ago•1 comments

My Dog Ate a Loaf of Bread – What to Do Now – PetToxCheck

https://pettoxcheck.com/dogs/my-dog-ate-loaf-of-bread/
2•june_lindqvist•37m ago•0 comments

Unlocking Stable On-Policy RL on TPU with Bitwise-Zero Train–Inference Mismatch

https://developers.googleblog.com/unlocking-stable-on-policy-rl-on-tpu-with-bitwise-zero-traininf...
2•gmays•38m ago•0 comments

HTML-in-Canvas: Draw live DOM subtrees directly into 2D, WebGL, or WebGPU canvas

https://developer.chrome.com/docs/web-platform/html-in-canvas
2•selvan•40m ago•0 comments

Rubio says zero evidence tech outages related

https://www.cbsnews.com/news/marco-rubio-tech-outages-not-connected/
4•Exoristos•44m ago•0 comments

Former Nvidia CEO Jensen Huang can nominate two directors to company board

https://www.reuters.com/legal/transactional/former-nvidia-ceo-jensen-huang-can-nominate-two-direc...
3•mfiguiere•47m ago•0 comments

Microsoft disabled API permissions seemingly overnight

3•emp_•49m ago•0 comments

Show HN: Director's Lookbook, named looks for image, video and music prompts

https://directorslookbook.app/
2•RiverRoadLabs•50m ago•0 comments

Hugging Face and OpenRouter join forces to make open-weight models easy to run

https://huggingface.co/blog/openrouter
3•gmays•53m ago•0 comments

Vaccine Improves Survival in People with Acute Myeloid Leukemia

https://www.mskcc.org/news/vaccine-improves-survival-in-people-with-acute-myeloid-leukemia-aml
1•thinkcontext•53m 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).