frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Global freedom declined for the 20th consecutive year in 2025

https://freedomhouse.org/report/freedom-world/2026/growing-shadow-autocracy
1•Cider9986•54s ago•0 comments

Show HN: Mac-computer-use, an open-source clone of Codex Computer Use

https://github.com/TheGuyWithoutH/mac-computer-use
1•guywithnoh•3m ago•0 comments

Colombia will euthanize Pablo Escobar's invasive 'cocaine hippos'

https://www.scientificamerican.com/article/colombia-will-euthanize-pablo-escobars-invasive-cocain...
1•zdw•6m ago•0 comments

Fatal Accident Occurs in Nurburgring Langstrecken-Serie (NLS)

https://www.bbc.com/sport/motorsport/articles/crl1wwdegkno
1•linzhangrun•8m ago•0 comments

Bounce Off the Atmosphere at Reentry? (2016)

https://space.stackexchange.com/questions/19296/bounce-off-the-atmosphere-at-reentry
1•susam•9m ago•0 comments

F-14 Central Air Data Computer

https://en.wikipedia.org/wiki/F-14_CADC
1•unsnap_biceps•10m ago•1 comments

Verkada Deceives School That Verkada Cameras Would Not "Brick"

https://ipvm.com/reports/verkada-school-brick
1•jhonovich•12m ago•0 comments

CTX is a cognitive memory layer for AI systems

https://github.com/diegoxtr/ctx-open
2•diegoxtr•13m ago•0 comments

Show HN: FluxTest for testing network performance of self-hosted infrastructure

https://github.com/siddheshgunjal/flux-test
1•siddheshgunjal•14m ago•0 comments

NASA selects Falcon Heavy to launch ESA Mars rover mission despite budget threat

https://spacenews.com/nasa-selects-falcon-heavy-to-launch-esa-mars-rover-mission-despite-budget-t...
1•bookmtn•15m ago•0 comments

Show HN: Hyprmark – Markdown viewer for the Hyprland ecosystem

https://github.com/robinduckett/hyprmark
1•robinduckett•21m ago•1 comments

A resume builder for pets, for those who need to prove their animal isn't feral

https://petresume.co/
2•droopyKnees•33m ago•1 comments

The Khan Ted Institute

https://khanted.org/Home
2•capex•40m ago•0 comments

Ask HN: API Request for Feedback OK in Show HN?

2•casefile_dev•40m ago•2 comments

Opentargets-py – Python SDK for the Open Targets drug discovery database

https://pypi.org/project/opentargets-py/
2•goknurarican•44m ago•0 comments

Old Computers Sucked

https://oldcomputerssucked.com/
2•st_goliath•45m ago•0 comments

Is ChatGPT's web front end being intentionally degraded?

https://chatgpt.com
2•linzhangrun•48m ago•6 comments

Rise against the Machines: The Luddites [video]

https://www.youtube.com/watch?v=oeFTuD4Mnug
1•linsomniac•50m ago•0 comments

At the HumanX conference, everyone was talking about Claude

https://techcrunch.com/2026/04/12/at-the-humanx-conference-everyone-was-talking-about-claude/
1•Rafsark•50m ago•0 comments

The Cost of Cheap Clone Boards: Streaming Video on an STM32H750

https://msj.prose.sh/debug_streaming_weact_stm32h750
1•melastmohican•52m ago•1 comments

Robotaxi is now rolling out in Dallas and Houston

https://twitter.com/robotaxi/status/2045564609504116771
2•iknowstuff•54m ago•2 comments

AI chip startup Cerebras files for IPO

https://techcrunch.com/2026/04/18/ai-chip-startup-cerebras-files-for-ipo/
2•AnhTho_FR•54m ago•0 comments

Show HN: I built a CLI to fake Git commits

https://github.com/TDiblik/git-forge
2•TDiblik•59m ago•0 comments

No more bill shocks budget alerts comes to Cloudflare

https://projektisle.com/2026/04/no-more-bill-shocks-budget-alerts-comes-to-cloudflare/
1•todotask2•1h ago•0 comments

PostgreSQL Just Got Its Biggest Upgrade That Will Change DB Performance in 2026

https://medium.com/@CodingWithAbhi/postgresql-17-performance-upgrade-2026-f4222e71f577
1•breve•1h ago•0 comments

That 90s Chat Program You Don't Remember

https://www.youtube.com/watch?v=fMKiz7KTSz4
1•1o1o1o1o1•1h ago•0 comments

Deutsche Telekom has a bad DKIM key

https://infosec.exchange/@badkeys/116407565746342278
4•icco•1h ago•0 comments

Show HN: nvsx – A hook layer for NVSentinel GPU fault remediation

https://github.com/nav-beep/nvsx
1•essekar•1h ago•2 comments

MuJoCo – Advanced Physics Simulation

https://github.com/google-deepmind/mujoco
1•modinfo•1h ago•0 comments

Mailinator's Universal IDP

https://www.mailinator.com/introducing-mailinators-universal-idp/
3•zinxq•1h ago•0 comments
Open in hackernews

Ask HN: Help with doing statistics over machine code

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