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.
should i put it in it's own section or should i add it to one of the other one's? I am really sorry if i am being a pest, it's just that i have been trying so hard to figure out why it just won't work
deathkillspt wrote:grr...It still just boots up and prints "S"
The only problem I see is that your terminating condition is checking for the character '0' rather than '\0'.
I remember I had really strange printing problems also. It turned out that GCC's optimizations were messing everything up for whatever reason. Let us have a look at your cflags.
-Wall -O -floop-optimize2 -fno-builtin -nostdinc -I include -ffreestanding -c
I wish I knew exactly why I get the errors I get. But I don't. I do know that when I did an '-S' to see the assembly listing for gcc, things didn't look right.
Maybe that would be a good advice for you too. Add '-S' to your cflags and check out the assembly code it produces.
You must tell the compiler not to use it's standard library. If you don't, you'll end up with all sorts of crap in your executable and stuff that probably will make it die!