Fixing Warnings & Compile Errors | 32 Bit OS Dev (in C)

preview_player
Показать описание
Fixing compile issues and booting for gcc and clang, and fixing warnings from -Wall & -Wextra. Mainly to get back into this project, and get it working for development on more systems.

OS Dev playlist:

Git Repos:

Repo state at start of this video:
cd amateuros
git checkout 3c10ac4b8ded4c8c3e8fe4eebb8463fd9d8e463b

Contact:
twitter: @Queso_Fuego

Notes:
- There are probably other errors not shown here, either under -Wpedantic or on other OSes like the BSD's. But hopefully this clears up most of them and helps building & booting.
I will go through and fix most of the -Wpedantic errors at a later date, maybe when the filesystem is done.

Next video:
- Small C program to convert bdf fonts; starting the open() syscall

Outline:
0:00 fix initial compile errors
11:58 fix clang errors and qemu invocation
16:40 add -Wall -Wextra
19:36 debug loading kernel, refactor rw_sectors() reading
37:08 test different optimization levels, "fix" broken putc()
41:55 refactor rw_sectors() writing, fix remaining warnings
1:10:53 coming up & outro

Questions about setup/software/etc.?

Music credits:
Creative Commons CC BY-SA 3.0

#osdev #compilererrors #gcc
Рекомендации по теме