0

I would like to explore code optimisation on the Raspberry Pi Pico's microcontroller, RP2040, using Godbolt, but I'm not sure which compiler options to use. The microcontroller is an Arm Cortex-M0. I'd be happy if I could at least set it to compile for a generic Arm Cortex-M0 platform.

Which compiler should I choose, and which options?

artless noise
  • 21,212
  • 6
  • 68
  • 105
Rocketmagnet
  • 5,656
  • 8
  • 36
  • 47
  • So you already know how to select ARM GCC in Compiler Explorer and add the `-mcpu=cortex-m0` option, right? Are you looking for anything else? What criteria will you use to judge potential answers that people might take the time to write up? – David Grayson May 29 '23 at 00:29
  • @DavidGrayson - No I didn't know that. Thanks. That works! – Rocketmagnet Jun 04 '23 at 20:00

0 Answers0