Start by actually writing code. Use gcc command to compile. Put the command in a shell script or make file when you start to get more than a few arguments. Done.
https://jera.com/techinfo/jtns/jtn002
Consider using Clang-Tidy with
`-*,cert-*`
(Which disables all default options, and checks your code according to the Secure coding standard (CERT) ruleset.)Use Clang-Format as well. If you use Clang, consider `-Weverything -fsanitize=address,undefined` and disable options that you do not need. Consider using NMake or Make (or just write a simple script to automate building the stuff).
Here's a Google-esque style guide for C:
https://gist.github.com/davidzchen/9187878
At least, this is my approach.
CC = cl.exe
LD = link.exe
CFLAGS = /Od /Zi /FAsu /std:c17 /permissive- /W4 /WX
LDFLAGS = /DEBUG /MACHINE:X64 /ENTRY:wWinMainCRTStartup /SUBSYSTEM:WINDOWS
LDLIBS = user32.lib gdi32.lib
PREFIX = ../src/
all: app.exe
app.exe: app.obj
$(LD) $(LDFLAGS) /OUT:app.exe app.obj $(LDLIBS)
app.obj: $(PREFIX)app.c
$(CC) /c $(CFLAGS) $(PREFIX)app.c
clean:
rmdir /q /s build