PS:

Changing "main()" to "int main()" will already cause the compiler to barf.

#psion3 #sibo #epoc16 #smallc

Here is the code in the file "HELLO.C". I'm afraid it is rather non-standard.

/* Take a look at win.c for full details about
using #link and #run etc..
*/

#link "-om:\img\hello.img hello.o stdio.o"
#run "m:\img\hello.img"

#include <stdio.h>

main()
{
printf("Hello world\n\r");
fgetc(stdin);
exit(0);
}

#smallc #psion3 #sibo #epoc16

Here are my efforts to document compiling C-Code with Small C to an IMG-File on the Psion 3c itself.
Steps:
1. Scrolling through the C-Code
2. Compiling with <Psion>+T
3. Switching to the IMG-Files launcher
4. Running the IMG-File itself and terminating with <ESC>

I apologise for the lousy quality of the the video.

#retrocomputing #epoc16 #sibo #psion3 #smallc

/cc @thelastpsion

I've been noticed by senpai! πŸ™‡πŸ»β€β™‚οΈ #retro #msdos #smallc #c

#smallmake is a #publicdomain #Make for #DOS.

smallmake is a simple, small Make tool written in #SmallC for use in DOS. smallmake has several limitations for size reduction and speed improvements, lacking variables, and having a limit of 1024 targets and 16 kB files. smallmake uses inline assembly for certain system functions, and thus requires a 8086/88 CPU.

Website πŸ”—οΈ: https://github.com/DosWorld/smallmake

#free #opensource #foss #fossmendations #programming

GitHub - DosWorld/smallmake: Public domain MAKE tool for DOS 16-bit (real mode) and 8086/88 CPU. Designed for Small C by J. Hendrix or any other languages.

Public domain MAKE tool for DOS 16-bit (real mode) and 8086/88 CPU. Designed for Small C by J. Hendrix or any other languages. - GitHub - DosWorld/smallmake: Public domain MAKE tool for DOS 16-bit ...

GitHub