📄 compile(1).bat
字号:
nasm boot.asm -o out/boot.bin
nasm setup.asm -o out/setup.bin
nasm -f elf system_invoke.asm -o out/system_invoke.bin
g++ -O0 -fpack-struct -ffreestanding -nostdlib -fno-builtin -fno-rtti -nostdinc++ -nostdinc -fno-exceptions -c kernel.cpp -o out/kernel.o
g++ -O0 -fpack-struct -ffreestanding -nostdlib -fno-builtin -fno-rtti -nostdinc++ -nostdinc -fno-exceptions -c system.cpp -o out/system.o
g++ -O0 -fpack-struct -ffreestanding -nostdlib -fno-builtin -fno-rtti -nostdinc++ -nostdinc -fno-exceptions -c video.cpp -o out/video.o
g++ -O0 -fpack-struct -ffreestanding -nostdlib -fno-builtin -fno-rtti -nostdinc++ -nostdinc -fno-exceptions -c system_invoke.cpp -o out/system_invoke.o
g++ -O0 -fpack-struct -ffreestanding -nostdlib -fno-builtin -fno-rtti -nostdinc++ -nostdinc -fno-exceptions -c system_lib.cpp -o out/system_lib.o
ld -o out/kernel -Ttext 0x0 -e Pyos_Main out/kernel.o out/system.o out/video.o out/system_invoke.o out/system_lib.o out/system_invoke.bin
objcopy -R .note -R .comment -S -O binary out/kernel out/kernel.bin
./make_pyos_kernel.exe out/pyos.img out/boot.bin out/setup.bin out/kernel.bin
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -