Hi! I just want to know, what would happen if I'd compile a c-program with file-usage (fopen, fprintf,...) to flat binary. What would happen if I wrote this binary as the kernel onto a floppy?
black.Fish
gcc/djgpp + file system
Re:gcc/djgpp + file system
Well, if you tried to boot your kernel, there would be a fault. Functions like fopen(), fread(), etc. are system specific. This means, that for example the fopen() function for Windows uses Windows system calls.
So the kernel wouldn't work/run. You have to write *everything* for your own...
good luck...
So the kernel wouldn't work/run. You have to write *everything* for your own...
good luck...
Re:gcc/djgpp + file system
that means: Make your own lib!
Or you can use someone elses, like mine or glib ( i think that's what is's called)
Or you can use someone elses, like mine or glib ( i think that's what is's called)
Re:gcc/djgpp + file system
glib is for graphics. you must be talking about gnu libc. maybe the best version for this kind of use is libc5 since newer versions are quite complex for a simple OS.