Pelles C forum

General => Chit-Chat => Topic started by: Vortex on October 25, 2023, 02:07:46 PM

Title: PicoC
Post by: Vortex on October 25, 2023, 02:07:46 PM
The PicoC interpreter :

Quote
PicoC is a very small C interpreter for scripting. It was originally written as a script language for a UAV on-board flight system. It's also very suitable for other robotic, embedded and non-embedded applications.

The core C source code is around 3500 lines of code. It's not intended to be a complete implementation of ISO C but it has all the essentials. When compiled it only takes a few k of code space and is also very sparing of data space. This means it can work well in small embedded devices. It's also a fun example of how to create a very small language implementation while still keeping the code readable.

It's been tested on x86-32, x86-64, powerpc, arm, ultrasparc, HP-PA and blackfin processors and is easy to port to new targets.

https://gitlab.com/zsaleeba/picoc

https://github.com/jpoirier/picoc

https://software.muzychenko.net/en/pico-c-win32/
Title: Re: PicoC
Post by: John Z on October 26, 2023, 05:44:17 PM
Hi Vortex,

Interesting .. picoC written in C.
I would have expected assembly ;)

John Z
Title: Re: PicoC
Post by: Vortex on October 26, 2023, 07:25:17 PM
Hi John,

As we know, the language C is very versatile. PicoC is the product of the power of C.

The tiny C Compiler is another utility prodiving the C interpreting service :

https://bellard.org/tcc/
Title: Re: PicoC
Post by: AlexN on October 27, 2023, 12:08:53 AM
The tiny C Compiler is another utility prodiving the C interpreting service :

https://bellard.org/tcc/
The last release of this compiler is at: http://download.savannah.nongnu.org/releases/tinycc/ (http://download.savannah.nongnu.org/releases/tinycc/).
The newest development you can find at: https://repo.or.cz/tinycc.git (https://repo.or.cz/tinycc.git).
Title: Re: PicoC
Post by: MrBcx on October 27, 2023, 02:34:46 AM
The tiny C Compiler is another utility prodiving the C interpreting service :

https://bellard.org/tcc/
The last release of this compiler is at: http://download.savannah.nongnu.org/releases/tinycc/ (http://download.savannah.nongnu.org/releases/tinycc/).
The newest development you can find at: https://repo.or.cz/tinycc.git (https://repo.or.cz/tinycc.git).

If their search bubble is any indication, that site desperately needs a moderator.  Too bad ...
Title: Re: PicoC
Post by: Vortex on October 28, 2023, 12:08:25 PM
Hello,

Quote
About

Unofficial mirror of mob development branch

repo.or.cz/w/tinycc.git

https://github.com/TinyCC/tinycc

I managed to build the 32-bit version of the mob branch with Msys2.