frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Another Better Lower Bound for N=17 Square Packing

http://gus-massa.blogspot.com/2026/08/another-better-lower-bound-for-n17.html
1•gus_massa•3m ago•0 comments

Ask HN: Combining Healthcare and Software Engineering into a Career

1•dormo•4m ago•0 comments

Arizona Voters Sour on Flock Cameras Despite Believing They Help Police

https://nxtgenp.com/post/new-blog-post-6092
1•imzadi•5m ago•0 comments

Art as a positive force

https://sisyphusnotes.substack.com/p/art-as-a-positive-force
1•bhagyeshsp•6m ago•0 comments

Show HN: Proliferate- open-source, self-hostable Codex for any coding agent

https://github.com/proliferate-ai/proliferate
2•pablo24602•6m ago•0 comments

Bringing Primary Constructors to Dart

https://dart.dev/blog/bringing-primary-constructors-to-dart
1•WaltPurvis•6m ago•1 comments

M5Stack Launches PaperMono: A Compact E-Ink Development Terminal

https://shop.m5stack.com/blogs/news/m5stack-launches-papermono-a-compact-e-ink-development-termin...
1•big_toast•9m ago•1 comments

Accept() and Socket Inheritance

https://purplesyringa.moe/blog/accept-and-socket-inheritance/
2•ibobev•9m ago•0 comments

Artificial Analysis: What Is the Intelligence Index Measuring?

https://itsmonkey.business/blogposts/01-On_Artificial_Analysis.html
1•baddash•9m ago•0 comments

Going Freestanding

https://antonz.org/going-freestanding/
1•ibobev•9m ago•0 comments

Why your infrastructure is more important than the next LLM release

https://www.ito.ai/blog/ai-model-plateau-why-infrastructure-matters-more-next-release
3•jevanish•9m ago•0 comments

Walmart to Start Accepting Apple Pay and Google Pay

https://techcrunch.com/2026/08/21/walmart-to-finally-start-accepting-apple-pay-and-google-pay/
2•speckx•11m ago•0 comments

Writing a C preprocessor for bgfx shader compiler

https://bkaradzic.github.io/posts/preprocessor/
1•ibobev•12m ago•0 comments

A.I. Agents Are Taking Online Courses for Cheating Students

https://www.nytimes.com/2026/08/10/us/ai-cheating-online-degrees.html
3•malshe•12m ago•1 comments

Wall Street Monetizes Misery

https://charlesepstein.substack.com/p/how-wall-street-monetizes-misery
2•chuckepstein•12m ago•0 comments

Estimating article processing charges paid to 14 publishers for open access

https://arxiv.org/abs/2608.16322
1•theanonymousone•15m ago•0 comments

I'd Rather Risk Cancer Than See AI Move This Fast

https://www.theatlantic.com/technology/2026/06/ai-cancer-progress/687654/
1•TiredOfLife•16m ago•0 comments

Making LEDs at Home [video]

https://www.youtube.com/watch?v=VHyoz8fFpUM
3•elias_t•17m ago•0 comments

Show HN: Steganeur – Hide secret messages in LLM-generated text (Rust)

https://github.com/marcsnid/steganeur
2•marcsnid•19m ago•0 comments

The artistry in 8-bit and 16-bit pixel art

https://www.youtube.com/watch?v=LMlh0re9fMk
2•bookofjoe•20m ago•0 comments

NATO's Operations Continue as Russia Escalates in Romania

https://olgalautman.substack.com/p/update-natos-operations-continue
2•speckx•20m ago•0 comments

The Anniversary of the 1968 Invasion of Czechoslovakia

https://komando1.substack.com/p/when-the-brotherly-tanks-arrived
3•inglor_cz•22m ago•1 comments

Put your startup on the map. Get visibility. Anyone can steal your spot back

https://www.flagwars.lol/
2•sebmatts•22m ago•0 comments

A self hosted AI software factory

https://blog.jakesaunders.dev/building-an-almost-fully-self-hosted-sandboxed-agentic-software-fac...
4•jakelsaunders94•25m ago•0 comments

Kobo can run apps now

https://bandarlabs.github.io/Cobalt/
4•thepoet•28m ago•0 comments

Oura ring misleads consumers about sleep-tracking accuracy

https://techcrunch.com/2026/08/21/oura-faces-lawsuit-accusing-it-of-misleading-consumers-about-sl...
3•tracyhenry•30m ago•0 comments

DRC Ebola outbreak 'growing exponentially,' UN says

https://www.dw.com/en/congo-ebola-spread-vaccine/a-78457248
5•speckx•31m ago•0 comments

OpenAI Codex adds hidden "Daybreak Blue" and "Daybreak Red" cybersecurity models

https://github.com/openai/codex/commit/5bcd7b0fbcefb41d0caa8db1a212ad7d47cf93ab
2•bakigul•32m ago•0 comments

Show HN: eInk Optimized Manga with Kindle Comic Converter (+Kobo/KOreader)

https://github.com/ciromattia/kcc
2•seam_carver•32m ago•0 comments

A GitHub App Saved Us Hours of Manual Effort

https://www.godaddy.com/resources/news/how-a-github-app-saved-us-hours-of-manual-effort
2•tmuhlestein•33m 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).