i ran make clean
and nothing changed so i am probably missing some library's

i got a more modern version of sdcc(libre)
it is a small device c compiler
with no standard library
and from reading its manual(http://sdcc.sourceforge.net/doc/sdccman.pdf) you should be able to compile
a gameboy application like this:
sdcc -mgbz80  main.c

but when i do i dont get a executable
i just get lots of text files
including a .asm file

i have included them as a attachment

so the compiler seems to only translate the c code
into assembly but not turn it into a executable program

this is confusing as the gbdk has lcc and sdcc
why would it need 2 compilers?
dose sdcc only assemble the program and lcc compile it?

the main.c file is this:


/*this program has not purpose
its just a test
*/
unsigned char i = 3;
int main(){
i++;
i = 110;
i = 0;
i = 8;
return 0;
}


dose anyone know how to compile for the gameboy with sdcc
if you can?

Reply via email to