frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

You can't admit you're wrong (even when you know it)

https://www.joanwestenberg.com/p/why-you-cant-admit-youre-wrong-even
1•ignoramous•43s ago•0 comments

Launch HN: Axonnic (YC F26) – Sleeves that track fingers and estimate force

https://www.axonnic.com/
1•arshpatankar•1m ago•0 comments

Show HN: sourcesli.st, browse Debian ISOs, packages and bug reports

https://sourcesli.st
1•brainlessdev•1m ago•0 comments

Why must a PCMCIA card be opaque?

https://retrocomputing.stackexchange.com/questions/32923/why-must-a-pcmcia-card-be-opaque
1•SeenNotHeard•2m ago•0 comments

ICANN to Test FBI and Interpol Auth for Domain Registration Data Requests

https://circleid.com/posts/icann-to-test-fbi-and-interpol-authentication-systems-for-domain-regis...
1•speckx•4m ago•0 comments

A milestone in expanding access to AI

https://openai.com/index/expanding-access-to-ai-with-chatgpt-ads/
1•gmays•5m ago•0 comments

My first day with Claude Duet

https://nataliewalls.com/blog/first-day-with-claude-duet
1•n8m8•5m ago•0 comments

Linear changed code review for AI-written code

https://linear.app/data/code-review
1•cristinacordova•6m ago•0 comments

Minecraft-inspired components for UI SDK

https://mineui.laravel.cloud
2•pushpak1300•7m ago•0 comments

Skipmdm-Bypass – Bypass MDM on MacBooks Running Monterey, Ventura and Sonoma

https://github.com/alsyundawy/skipmdm-bypass
1•gregsadetsky•7m ago•0 comments

Chemistry Is Geometry

https://chillphysicsenjoyer.substack.com/p/chemistry-is-actually-geometry
2•sebg•8m ago•0 comments

Ask HN: Are iPhone Duo Customers Happy?

3•rogerdickey•9m ago•0 comments

Science at the Frontier

https://openai.com/index/science-at-the-frontier/
1•droidjj•9m ago•0 comments

RapidFort helps you catch exposed secrets

https://www.rapidfort.com/platform-overview
1•SpaldingLY77•11m ago•0 comments

Show HN: My OSS Claude Meetings alternative that works with any agent or call

https://github.com/wanderingstan/vibeconf-app/
2•wanderingstan•12m ago•1 comments

Math 2.0

https://lareviewofbooks.org/article/terence-tao-six-math-essentials-ai-machine-learning/
1•digital55•13m ago•1 comments

Rust Changed Me as a Developer

https://blog.startifact.com/posts/how-rust-changed-me/
2•speckx•14m ago•0 comments

Trump's Plan for A.I. Supremacy Fuels Resistance in the Philippines

https://www.nytimes.com/2026/11/16/business/trump-paxsilica-philippines-ai.html
1•atlasunshrugged•14m ago•0 comments

Ring programming language version 1.28 is released

https://ring-lang.github.io/
1•birdculture•14m ago•0 comments

AIs might overthrow the government within a year – Paul Christiano [video]

https://www.youtube.com/watch?v=SyHM5hNPAEo
1•Pragmata•15m ago•0 comments

Empirical Evaluation of ScarCodec Operators on Public Observational Data

https://zenodo.org/records/24290424
1•thetod•16m ago•1 comments

Show HN: AgentMon Live a Local Monitor for Claude Code, Codex and Kiro Crew

https://github.com/codenotary/agentmon-live
1•vchain-dz•16m ago•1 comments

Nvidia Introduces Nemotron for Science to Accelerate Discoveries with Agents

https://nvidianews.nvidia.com/news/nvidia-introduces-nemotron-for-science-to-accelerate-discoveri...
2•kristianpaul•20m ago•0 comments

Frankenstein PBC – Animation, bestowed upon lifeless matter

https://www.frankensteinpbc.com/
1•ano-ther•20m ago•0 comments

Gootloader Malware Using SEO Poisoning and Compromised Sites to Gain Access

https://twitter.com/FBILosAngeles/status/2122405657110352096
1•bhartzer•20m ago•0 comments

Show HN: Atlas – One ID for every market on 28 crypto exchanges, stock perps too

https://github.com/aperiodic-io/atlas
1•szemy2•21m ago•0 comments

The Buddhist A.I. Sect That Wants to Take over Silicon Valley

https://www.newyorker.com/magazine/2026/11/23/the-buddhist-ai-sect-that-wants-to-take-over-silico...
1•littlexsparkee•22m ago•0 comments

California Sues OpenAI [pdf]

https://oag.ca.gov/system/files/attachments/press-docs/complaint-oai-cyber.pdf
5•mistrial9•22m ago•2 comments

Open-source harness and MCP dataset for options trading with AI agents

https://github.com/DevDizzle/gammarips-harness
1•gammarips•23m ago•0 comments

xAI admits data center pollution reaches parts of 2 states, denies it's bad

https://americanbuildout.com/xai-admits-data-centers-turbine-pollution-reaches-parts-of-two-state...
2•newyorkinfra•24m ago•1 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).