I recently started a small project to use the standard C Linux library in an uncoated environment. I described this on my blog: http://ellcc.org/blog/?page_id=289 Basically, what I did was set up to handle Linux system calls so that, by implementing simplified versions of some system calls, I can use functions from the standard library. For example, the current state for ARM implements simplified versions of read (), readv (), write (), writev (), and brk (). This allows me to use printf (), fgets () and malloc () unchanged.
I in my case, I use the same compiler to target Linux and bare-metal. Since it is based on clang / LLVM, I can also use the same compiler to target other processors. I am currently working on an example for Mips.
So, I think the answer is that there should be no difference.
source share