frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

WBD once again rejects Paramount offer in favor of Netflix deal

https://www.cnbc.com/2026/01/07/wbd-rejects-paramount-offer-again-netflix-deal.html
1•voxadam•41s ago•0 comments

Show HN: Abstract Port Graphs

https://www.portgraphs.com/
1•ebhn•1m ago•0 comments

Sugar industry influenced researchers and blamed fat for CVD

https://www.ucsf.edu/news/2016/09/404081/sugar-papers-reveal-industry-role-shifting-national-hear...
1•aldarion•1m ago•0 comments

Tell HN: Time traveler tries to buy a book

1•logicallee•2m ago•0 comments

Brussels bike ban plan for pedestrian zone 'dangerous and absurd'

https://www.theguardian.com/world/2025/dec/20/brussels-bike-ban-plan-for-pedestrian-zone-dangerou...
1•PaulHoule•4m ago•0 comments

Show HN: Stao – A simple standing desk reminder I built for myself

https://www.stao.app/
1•tskulbru•6m ago•0 comments

Re-implementing and improving the landing sequence in Top Gun for the NES

https://relaxing.run/blag/posts/top-gun-sim/
1•Boxxed•10m ago•0 comments

Lincos: A Language for Cosmic Intercourse

https://en.wikipedia.org/wiki/Lincos_language
2•harperlee•10m ago•0 comments

Hi, JAX: An introduction to vanilla JAX for deep learning research

https://github.com/matomatical/hijax
1•matomatical•15m ago•0 comments

Most successful information technology in history is the one we barely notice

https://bigthink.com/books/books-as-technology/
2•Brajeshwar•15m ago•1 comments

Show HN: RepoReaper – AST-aware, JIT-loading code audit agent (Python/AsyncIO)

https://github.com/tzzp1224/RepoReaper
2•realdexter•15m ago•0 comments

What are Cpp2 and cppfront? How do I get and build cppfront?

https://hsutter.github.io/cppfront/welcome/overview/
1•vhantz•16m ago•0 comments

Show HN: Arabic Calligraphy Generator – 11 styles, free, no signup

https://arabiccalligraphygenerator.online/
2•zaochen1224•16m ago•1 comments

U.S. Forces Seize Fleeing Russian-Flagged Oil Tanker in North Atlantic

https://www.twz.com/news-features/u-s-forces-seize-fleeing-russian-flagged-oil-tanker-in-north-at...
4•2OEH8eoCRo0•16m ago•2 comments

Cert Expirations disables Logitech keyboard and mice apps

https://support.logi.com/hc/en-us/articles/37493733117847-Options-and-G-HUB-macOS-Certificate-Issue
2•johnjungles•16m ago•0 comments

Show HN: A texting-yourself-style note app for capturing unstructured thoughts

https://strflow.app
2•eguchi1904•17m ago•0 comments

Samsung's Galaxy Book 6 series launches at CES

https://www.engadget.com/computing/laptops/samsungs-galaxy-book-6-series-ces-2026-intel-panther-l...
1•ksec•18m ago•0 comments

Productivity in Venezuela: An In-Depth Study of Decline and Potential Recovery

https://sharetxt.live/blog/productivity-in-venezuela
1•rexthonyy•19m ago•0 comments

CES 2026: Dell XPS Returns

https://www.dell.com/en-us/blog/this-is-xps-now/
4•martypitt•19m ago•2 comments

Primus Under Debian/Sid

https://www.4rknova.com//blog/2012/12/07/primus
1•ibobev•20m ago•0 comments

Secure AWS Access Keys on Your Laptop

https://fabiendubosson.com/blog/secure-aws-access-keys-on-your-laptop/
1•StreakyCobra•20m ago•0 comments

GNU Make, Parallel Processing

https://www.4rknova.com//blog/2012/11/28/make
1•ibobev•20m ago•0 comments

Show HN: AiRenamify – Smartly Rename Your Files with AI

https://airenamify.com/
1•yong1024•22m ago•0 comments

Show HN: A simple way to find open source issues to contribute to

https://K-dash.github.io/contrib-fyi/
2•K-dash•23m ago•0 comments

What happens when seeing is no longer believing?

https://thebulletin.org/premium/2025-12/what-happens-when-seeing-is-no-longer-believing/
1•voxleone•24m ago•0 comments

An interactive toy model for exploring AI's effect on the labour market

https://www.lesswrong.com/posts/zgehGn57XncCHnzTR/an-interactive-toy-model-for-exploring-ai-s-eff...
1•ebursztein•26m ago•0 comments

VSCode-Proto3 Extension Taken Over

https://github.com/zxh0/vscode-proto3/issues/184
1•gmemstr•26m ago•0 comments

Show HN: Milkyboard – Synth Keyboard with Milkdrop Visualizer

https://milkyboard.com/
1•amadeuspagel•28m ago•0 comments

Show HN: Slack bot for channel-owned mention aliases (not org-wide user groups)

https://yippa.io/alias-bot/
2•sidchilling•29m ago•0 comments

Weird Generalization and Inductive Backdoors: New Ways to Corrupt LLMs

https://arxiv.org/abs/2512.09742
3•Anon84•31m ago•0 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

2•phafu•8mo 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•8mo 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•8mo 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).