Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
@echo off
echo Agora montando, compilando, e juntando seu kernel:
C:\djgpp\bin\nasm -f elf -o start.o start.s
rem Lembre-se neste ponto aqui: Nós vamos adicionar comandos 'gcc' para compilar as fontes em C
C:\djgpp\bin\gcc -Wall -O -nostdlib -nostdinc -fno-builtin -fno-exceptions -I./include -c -o main.o main.c
C:\djgpp\bin\gcc -Wall -O -nostdlib -nostdinc -fno-builtin -fno-exceptions -I./include -c -o monitor.o monitor.c
C:\djgpp\bin\gcc -Wall -O -nostdlib -nostdinc -fno-builtin -fno-exceptions -I./include -c -o common.o common.c
rem Este junta todos seus arquivos. Lembre-se de como você adiciona arquivos *.o, você precisa
rem adicionar após start.o. Se você não adicionar eles de qualquer modo, eles não estarão em seu kernel!
C:\djgpp\bin\ld -T link.ld -o kernel.elf start.o main.o monitor.o common.o
echo Limpando arquivos objetos...
del *o
echo Feito!
pause
Use English-language comments and output. (I assume your code looks similar to your build script.) When the time comes to ask for help, it makes things much more readable for the international audience you get in forums like this one.
Every good solution is obvious once you've found it.
Solar wrote:Use English-language comments and output. (I assume your code looks similar to your build script.) When the time comes to ask for help, it makes things much more readable for the international audience you get in forums like this one.