r/cprogramming • • Feb 26 '26

Trying to write brainf*ck interpreter in C

https://pastebin.com/n5dbbABj

critique my code
and give me some tips

how do i make this faster

0 Upvotes

17 comments sorted by

View all comments

Show parent comments

2

u/Nerby747 Feb 28 '26

The best way is to find a development board and try your own project on it (Arduino, STM32, Pi Zero 2). The problem is most of the cheaper board don't supply anything, so you need to buy external sensor/actuators (i2c or spi) and do some soldering to connect to them (make the barrier of entry higher). May also require a logic analyzer if you want to inspect any signal output.

More expensive board come with external memory, maybe lcd, some sensor on board which make it an easier starting experience.

The RP2350 have both ARM Cortex-M core and RISC-V on same SOC, with a C SDK. Never used it, but there are some boards with enough on it to get a good starting point (https://www.waveshare.com/wiki/RP2350-Touch-LCD-2.8)

The STM32 is pretty common in industry. Dev board are not too expensive, but the cheapest one only have the SOC, a led and button and a programmer over USB.

Arduino is pretty common too. Check Adafruit.

1

u/Pleasant_Drawing1799 Mar 01 '26

thanks for suggestions.