Skip to content

rp2: Revert "rp2: Build with nano.specs for newlib-nano.".#19353

Open
projectgus wants to merge 1 commit into
micropython:masterfrom
projectgus:bugfix/rp2_nano_revert
Open

rp2: Revert "rp2: Build with nano.specs for newlib-nano.".#19353
projectgus wants to merge 1 commit into
micropython:masterfrom
projectgus:bugfix/rp2_nano_revert

Conversation

@projectgus

@projectgus projectgus commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

This reverts commit 6552836 from #19299.

Testing

I haven't done any specific testing for this revert, but PR 19352 has some before vs after performance benchmarks.

Trade-offs and Alternatives

Generative AI

I did not use generative AI tools when creating this PR.

This reverts commit 6552836.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
@projectgus projectgus force-pushed the bugfix/rp2_nano_revert branch from a6097a6 to c2ceed1 Compare June 18, 2026 04:59
@projectgus projectgus requested a review from dpgeorge June 18, 2026 05:08
@github-actions

Copy link
Copy Markdown

Code size report:

Reference:  unix/README: Update the supported targets list. [d901e98]
Comparison: Revert "rp2: Build with nano.specs for newlib-nano.". [merge of c2ceed1]
  mpy-cross:    +0 +0.000% 
   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
      esp32:    +0 +0.000% ESP32_GENERIC
     mimxrt:    +0 +0.000% TEENSY40
        rp2: +1180 +0.128% RPI_PICO_W[incl +720(bss)]
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

@dpgeorge

Copy link
Copy Markdown
Member

Yeah, I feel like this is the right thing to do. Keeps things simple which is always a good thing.

(For the mbdetls change, gtime_r, probably that's a good change that can stay because it eliminates an extra path through mbedtls to do an unnecessary memcpy. But I guess that can be done separately, and also done for all other ports.)

@Gadgetoid

Gadgetoid commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

I am forced to agree. Though am continuing to cut firmware builds with this change, which is something I'll probably want to address in retrospect.

I carried this technique over from RP2040 and didn't consider its implications on RP2350. Sorry!

Edit: A quick investigation suggests roughly a 30% performance hit to bm_pidigits. No wonder I was seeing such a huge gain when I found those double-zero-init bugs.

@dpgeorge

Copy link
Copy Markdown
Member

I carried this technique over from RP2040 and didn't consider its implications on RP2350. Sorry!

No worries. We are all leaning something here 😄

A quick investigation suggests roughly a 30% performance hit to bm_pidigits. No wonder I was seeing such a huge gain when I found those double-zero-init bugs.

Ah, that makes a lot more sense now! (see #18771 for reference)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants