Download the example source files here
Java , C++ and Python examples will assemble with no extra work, but C# and FreeBasic need installing
Scratch is included as a desktop app on the latest
PIs, You can download it for your desktop here,
however it doesn't need installing, You can use scratch online Here
|On a Raspberry Pi
|On a desktop PC
|Download for the raspberry Pi here
You will only need a 16 gb or so SD card
|We can install the PC version of the raspberry OS onto a virtual
Download the ISO here
You can download a pre-installed VMware disk image here
|We can run all of our programs using Geany.
It can be found on the Programming menu.
|There are three stages to running a program.
1. Compile it
2. Build the executable
3. Run it with the Run/Stop button.
Note: Some languages don't need stage 2
|To compile C#
we must install Mono!
This can be done with 'Add / Remove Software' from the preferences menu
Alternatively, You can install from the command line with:
apt-get install mono-complete
|Freebasic has quite a few dependencies which probably aren't
Check these are installed in 'Add / Remove software'
| Download the latest FreeBasic build here
for ARM Rasperry PI, or here
for x86 PC
Extract the zip file, and install from the terminal with:
|C code compiles to Assembly language machine code.
We won't be covering Assembly in these tutorials, but if you want to see how C code compiles to Assembly, you can set up GCC to export the compiled ASM file as a .S file.
With a .C file open in the editor
Select Build menu -> Set Build commands
|replace the compile command with
-fverbose-asm -S -c "%f"
When you build a .C file, an .S file will be created containing the assembly source code.